Forum: C Feb 17th, 2009 |
| Replies: 8 Views: 795 Woaaah! That did it! I am very thankfull!! Super, just what i need! |
Forum: C Feb 17th, 2009 |
| Replies: 8 Views: 795 tried some modifications
void polygon(int x, int y, int n, int r){
int k=0, *poly;
double pass= 2* M_PI/n,pass2=n*pass, a=360/n;
poly=new int[n];
while(k<n*2){
pass2+=a;
poly[k++]=x +r *... |
Forum: C Feb 17th, 2009 |
| Replies: 8 Views: 795 Sort of ! But not really..
This is what i wrote
void polygon(int x, int y, int n, int r){
int k=0, *poly;
double pass= 360/n, _n=0,pass2=n*pass;
poly=new int[n];
while(k<n*2){
... |
Forum: C Feb 17th, 2009 |
| Replies: 8 Views: 795 Hello everybody, i need a polygon formula to draw one. I want to make a function that will draw a polygon , depending on how many vertex's it has. I'm not good at math so i can't figure it out how to... |
Forum: C Jun 17th, 2008 |
| Replies: 3 Views: 658 Hello, i am supposed to solve a problem using this Method. Can anyone pls tell me what this exactly is, and how does it work?Or maybe a link to a source ...? i'd be very thankfuly!
Pls this is... |
Forum: C Jun 17th, 2008 |
| Replies: 3 Views: 658 I am first year,a 'freshman'. This is not my licence thesis.... just a thesis of the year. Now, we have not been tought that method yet because they teach it only in the second year. I have to learn... |
Forum: C Jun 17th, 2008 |
| Replies: 3 Views: 658 Hello, i am supposed to solve a problem using this Method. Can anyone pls tell me what this exactly is, and how does it work?Or maybe a link to a source ...? i'd be very thankfuly!
Pls this is... |
Forum: C Jun 16th, 2008 |
| Replies: 9 Views: 1,050 |
Forum: C Jun 16th, 2008 |
| Replies: 9 Views: 1,050 Evrica! It works! :P
Thank you Deave Sinkula and Aia! Without you i wouldn't have understood the mistake...by now.:)
Tomorrow i'll get a 9 (nine) for this program!
One last question: Why does... |
Forum: C Jun 16th, 2008 |
| Replies: 9 Views: 1,050 If fread worked for 1st and 2nd time, then surely the file was opened.
t and t2 are integers.
Maybe the problem is in wich mode i open the file? like "wr+" |
Forum: C Jun 16th, 2008 |
| Replies: 9 Views: 1,050 Done did that.
The function returns 0;which means no good. On succes it gives 1.
I have modified the code.Now on the third time the function does not work.(Works only twice).
int i,j,t,t2;... |
Forum: C Jun 16th, 2008 |
| Replies: 9 Views: 1,050 Hey, i'm trying to sort direct in a file.
The problem is that when i read the first time an int from it,it works! doh.
but when it reads for the second time, it doesn't. ( Neither the swap works.... |