![]() |
prime numbers now with arrays
so this really got me i, i have to write the numbers to an array then to the file, all i keep getting is numbers 0-99 however in the file help would be greatly appreciated. :?:
:
|
Re: prime numbers now with arrays
Quote:
arrays is a const int (with no semicolon), but later you try to use it as an array. Also your for loop has a comma instead of a semicolon. p is apparently trying to be pos. Your functions are too simple to be functions (you make it more confusing than helpful).:
for (int c =0; c<100;c++) //Write all the arrays to 0pos as a limit in the last for loop.I think you should go over a tutorial from the beginning and rethink your logic here, everything is more complicated than it needs to be. |
Re: prime numbers now with arrays
I'm surprised you got any output since your code does not compile. You should make sure your program works using standard output first.
|
| All times are GMT -5. The time now is 12:31 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC