Search Results

Showing results 1 to 12 of 12
Search took 0.00 seconds.
Search: Posts Made By: Alex_ ; Forum: C and child forums
Forum: C Feb 17th, 2009
Replies: 8
Views: 795
Posted By Alex_
Woaaah! That did it! I am very thankfull!! Super, just what i need!
Forum: C Feb 17th, 2009
Replies: 8
Views: 795
Posted By Alex_
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
Posted By Alex_
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
Posted By Alex_
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
Posted By Alex_
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
Posted By Alex_
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
Posted By Alex_
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
Posted By Alex_
Forum: C Jun 16th, 2008
Replies: 9
Views: 1,050
Posted By Alex_
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
Posted By Alex_
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
Posted By Alex_
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
Posted By Alex_
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....
Showing results 1 to 12 of 12

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC