![]() |
|
#1
|
|||
|
|||
Error Codes using Visual Studio 2005ok this is my first time posting and I am just starting to learn C++. I am using Visual Studio 2005 to build my programs and the program is right out of chapter one of the Deitel and Deitel book. this is the code that im using.
CPP / C++ / C Code:
Code:
is this just something that VS.net does not understand or have I totally messed something up? thanks for any help in advance! Last edited by admin : 21-Mar-2008 at 09:59.
Reason: Please insert your example C/C++ codes between [CPP] and [/CPP] tags
|
|||
|
#2
|
|||
|
|||
Re: Error Codes using Visual Studio 2005Do you see anything wrong here?
CPP / C++ / C Code:
The first thing you should do when looking at an error message is look at the line that it refers to. error C2146: syntax error : missing ';' before identifier 'num2' refers to line 2146 which I am guessing is the line above. You are missing a "<<" before num2. The best thing to do is to fix the first error, then recompile. This will oftentimes fix more than one error. |
|
#3
|
|||
|
|||
Re: Error Codes using Visual Studio 2005you are awesome. thanks for the help!!!!! I must have went through that code 300 times and never once did i see that.
|
Recent GIDBlog
Updates On The All New Toyota VIOS - Part III by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to read an argument from the terminal in visual c++ studio | swedenguy | MS Visual C++ / MFC Forum | 1 | 20-Nov-2007 15:32 |
| Multiple questions for C++ project | devster420 | CPP / C++ Forum | 1 | 20-Apr-2007 21:26 |
| Major newbie problem | cynack | MS Visual C++ / MFC Forum | 1 | 08-Apr-2007 11:25 |
| can i run visual 2005 mfc project in visual 6 or 2003? | spillover | MS Visual C++ / MFC Forum | 1 | 27-Dec-2006 18:09 |
| How Visual C++ only from Visual Studio .net | Picstudent | .NET Forum | 2 | 28-May-2006 20:52 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The