Go Back   FlashFXP Forums > >

Programming Need help with C/C++/Delphi? Ask here and make us all laugh.

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 11-21-2005, 10:00 PM   #1
lordoflife1
Junior Member
 
Join Date: Nov 2005
Posts: 10
Default

ill put the entior thing up...not much im just starting

// C++ code tamplate
#include <iostream.h>
#include <string.h>
void main()
{
// code goes hear!!!!
}

its not disined to do any thing
lordoflife1 is offline  
Old 11-21-2005, 10:05 PM   #2
_panic_
Senior Member
Ultimate Scripter
 
Join Date: Jul 2005
Posts: 153
Default

just a quick note on the pedantic front, you return value from main should be an 'int', not 'void'. but that isn't causing your problem...

what is the name of the file you have this code in? it should have a .cpp extension. further, how is it that you are trying to build the code? can you describe that process? it will help in determining why you are seeing this problem.
_panic_ is offline  
Old 11-21-2005, 11:16 PM   #3
lordoflife1
Junior Member
 
Join Date: Nov 2005
Posts: 10
Default

the name is template.cpp i dont get what your asking?? the book says that all i have to comply it in cmd....im a real beginer........i need help
lordoflife1 is offline  
Old 11-22-2005, 08:52 PM   #4
_panic_
Senior Member
Ultimate Scripter
 
Join Date: Jul 2005
Posts: 153
Default

Quote:
Originally Posted by lordoflife1
the name is template.cpp i dont get what your asking?? the book says that all i have to comply it in cmd....im a real beginer........i need help
i need to you show me the line you type into cmd that gives you this error message. it is likely you need to include a '/I' options (which you should be able to find from your compiler documentation) pointing to the right files, but the advice below also holds, try removing the '.h' from the end of the filenames in your #include lines. they are no longer required and in some cases will generate the error you are seeing.
_panic_ is offline  
Closed Thread

Tags
beginer, file, include, open, unable

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 11:02 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)