|
![]() |
Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Application Programming | |
Need me up C++ help!!!
|
||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) | |||||||||||||
|
Overclocked N00bLaR
![]() |
Trying to create a randum generator but somethings wronmg and i dunno what it is...
I keep getting a c:\program files\microsoft visual studio\myprojects\crapbot\crapbot.cpp(31) : fatal error C1010: unexpected end of file while looking for precompiled header directive Error executing cl.exe. error but if you look at my screen shot....there is no line 31 ***?? Errors on non existing lines? i dont understand(btw still a uber noob to c++) I even tried pressing enter and having it as a blank line or moving the // end to line 31 and someother places i just cant figure it out..please help, REPNESS!!
__________________
It's so COLD outside! stay inside -- www.OverClock.net -- You can join Here Gotta question? Refer to the extensive Frequently Asked Questions section! Check out Overclock.net's Folding At Home stats and join! You think your commodore 64 is really neato - what kinda chip you got in there? A dorito? Your usin' a 286? Don't make me laugh, windows loads up in what? A day in a half? - Yankovic "Aumotocnic"An unfortunate member of the overclock.net insomnia club" Quote:
![]() THE CHEVY Owners CLUB!
|
|||||||||||||
|
|
|
|
#2 (permalink) | |||||
|
Site Old-timer
|
Quote:
|
|||||
|
|
|
|
#3 (permalink) | |||||||||||||
|
Overclocked N00bLaR
![]() |
hmm what do you mean by wipe of line 31??????
Theres nothing on it? hmm i tried to upload a bmp of it it liek froze ill try something else after this poset but jpg quality blows
__________________
It's so COLD outside! stay inside -- www.OverClock.net -- You can join Here Gotta question? Refer to the extensive Frequently Asked Questions section! Check out Overclock.net's Folding At Home stats and join! You think your commodore 64 is really neato - what kinda chip you got in there? A dorito? Your usin' a 286? Don't make me laugh, windows loads up in what? A day in a half? - Yankovic "Aumotocnic"An unfortunate member of the overclock.net insomnia club" Quote:
![]() THE CHEVY Owners CLUB!
Last edited by Mr.N00bLaR : 01-16-05 at 02:27 AM. |
|||||||||||||
|
|
|
|
#4 (permalink) | |||||
|
Site Old-timer
|
Quote:
|
|||||
|
|
|
|
#5 (permalink) | |||||||||||||
|
Overclocked N00bLaR
![]() |
I dunno i retyped the second half of the code lol it still says the same erro with the line after the }
__________________
It's so COLD outside! stay inside -- www.OverClock.net -- You can join Here Gotta question? Refer to the extensive Frequently Asked Questions section! Check out Overclock.net's Folding At Home stats and join! You think your commodore 64 is really neato - what kinda chip you got in there? A dorito? Your usin' a 286? Don't make me laugh, windows loads up in what? A day in a half? - Yankovic "Aumotocnic"An unfortunate member of the overclock.net insomnia club" Quote:
![]() THE CHEVY Owners CLUB!
|
|||||||||||||
|
|
|
|
#6 (permalink) | |||||
|
Site Old-timer
|
Quote:
Utherwise I don't have a clue how it could be giving the message if there is nothing there.
|
|||||
|
|
|
|
#7 (permalink) | |||||||||||||
|
Overclocked N00bLaR
![]() |
Hmm i just tried that it, i dont see anything...Lol i must be doing something wrong because i cant compile a single programs with out getting that error...
I dunno C++ to much for my pea brain lol Btw it made that as a Windows 32 Application and i tried it as a Windows 32 Console Application I'm not sure weather or not that means anything im just tryin to make it in liek a cmd window
__________________
It's so COLD outside! stay inside -- www.OverClock.net -- You can join Here Gotta question? Refer to the extensive Frequently Asked Questions section! Check out Overclock.net's Folding At Home stats and join! You think your commodore 64 is really neato - what kinda chip you got in there? A dorito? Your usin' a 286? Don't make me laugh, windows loads up in what? A day in a half? - Yankovic "Aumotocnic"An unfortunate member of the overclock.net insomnia club" Quote:
![]() THE CHEVY Owners CLUB!
|
|||||||||||||
|
|
|
|
#8 (permalink) | |||||
|
Site Old-timer
|
Quote:
|
|||||
|
|
|
|
#9 (permalink) | |||||||||||||
|
Overclocked N00bLaR
![]() |
Hmm...i tried that...still same bs...
Can you spot anything wrong with my code? // CrapBot1.cpp : Defines the entry point for the application. // Shifted, scaled integers produced by 1 + rand() % 6. #include <iostream> using std::cout; using std::endl; #include <iomanip> using std::setw; #include <cstdlib> // contains function prototype for rand int main() { // loop 20 times for ( int counter = 1; counter <= 20; counter++ ) { // pick random number from 1 to 6 and output it cout << setw( 10 ) << ( 1 + rand() % 6 ); // if counter divisible by 5, begin new line of output if ( counter % 5 == 0 ) cout << endl; } // end for structure return 0; // indicate successful termination } // end funtion main
__________________
It's so COLD outside! stay inside -- www.OverClock.net -- You can join Here Gotta question? Refer to the extensive Frequently Asked Questions section! Check out Overclock.net's Folding At Home stats and join! You think your commodore 64 is really neato - what kinda chip you got in there? A dorito? Your usin' a 286? Don't make me laugh, windows loads up in what? A day in a half? - Yankovic "Aumotocnic"An unfortunate member of the overclock.net insomnia club" Quote:
![]() THE CHEVY Owners CLUB!
|
|||||||||||||
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|