![]() |
|
#1
|
|||
|
|||
Hello World not workinghello guys im using the C++builderX from Borland version 1.0.0.1786
im trying to do the helloworld thing... i dont know what i am doing wrong.. CPP / C++ / C Code:
....lol unforintly i have messed up and i dont even know how to get the errors that i was geting... i have 1 hr on this program so pls be gentle.... personley i think i need to compile it but i dont know how to do that wiht this program... i am at a loss. |
|||
|
#2
|
|||
|
|||
Re: newbee questionIt is std::cout, not std::count.
Neither it a prototype for main() required. Normal termination returns 0, not 1. |
|
#3
|
|||
|
|||
Re: newbee questionCPP / C++ / C Code:
ok i fixed it but now i am geting errors like this.... Code:
Last edited by admin : 09-Nov-2008 at 23:46.
Reason: Please insert your example C/C++ codes between [CPP] and [/CPP] tags
|
|
#4
|
||||
|
||||
Re: newbee questionPut this at the top (below #include <iostream>)
CPP / C++ / C Code:
EDIT: Oops, I just noticed that you said std::cout, so the above change won't make a difference. I tried compiling the code you posted and it works fine. __________________
www.blake-foster.com |
|
#5
|
|||
|
|||
Re: newbee questionare you using the same program that i am... i think that i am trying to run the program instead of compiling it and linking it.... i dont know how to compile it... ...
also i tryed the change you said and it still gives same errors... any suggestions... any compilers you suggest... any newbee guilds... right now im using sams teach yourself C++ in 24 hrs... it came with the Program and i dont know if that is the best thing for me. |
|
#6
|
|||
|
|||
Re: newbee questionQuote:
Quote:
|
|
#7
|
|||
|
|||
Re: newbee questionThere are hundreds of good C++ books, why don't you start with C++ primer by stephen prata and follow up with scott meyers effective C++ :-)
I would suggest that you use eclipse CDT if you are in linux and VC++ 2008 if your are on windows. Step through code, take a look at assembly code. Best of luck guys. |
|
#8
|
|||
|
|||
Re: Hello World not workinghey first of all, you have to insert ".h" when you including input output stream then, the main function does not need declaration when you want to us, so remove int main();
CPP / C++ / C Code:
|
Recent GIDBlog
Problems with the Navy (Chiefs) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Please, This is Difficult question try for me! | bcompt143 | C++ Forum | 4 | 24-Aug-2008 10:14 |
| Problems about simple tricked loop question | allenfanwenyuan | C++ Forum | 6 | 01-May-2007 10:19 |
| Question about locking surfaces to directly access pixels, SDL. | george89 | C++ Forum | 0 | 18-Jun-2006 22:16 |
| Question about sprintf() | shvalb | C Programming Language | 1 | 23-Feb-2005 05:28 |
| question of practice | magiccreative | C++ Forum | 1 | 06-Feb-2004 08:17 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The