| View previous topic :: View next topic |
| Author |
Message |
kokee101 Grandmaster Cheater
Reputation: 0
Joined: 15 Jan 2007 Posts: 753 Location: Who wants to know?
|
Posted: Fri Jan 18, 2008 1:13 am Post subject: A little help. |
|
|
I was following a specific guide to learning C++, this is really a stupid question, but it tells me to write this
1: #include <iostream.h>
2:
3: int main()
4: {
5: cout << "Hello World!\n";
6: return 0;
7: }
into an editor. I downloaded the Borland C++ compiler and tried to create this exe. But Im really not sure how. Can anyone kindly point me into the right directtion?
|
|
| Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Fri Jan 18, 2008 1:32 am Post subject: |
|
|
That code is old and bad.
| Code: |
#include <iostream>
int main(int argc, char* argv[])
{
std::cout << "Hello, World!" << std::endl;
return 0;
}
|
_________________
|
|
| Back to top |
|
 |
kokee101 Grandmaster Cheater
Reputation: 0
Joined: 15 Jan 2007 Posts: 753 Location: Who wants to know?
|
Posted: Fri Jan 18, 2008 1:54 am Post subject: |
|
|
| Lol, part of a tut, just trying to get it to work.
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
|
| Back to top |
|
 |
kokee101 Grandmaster Cheater
Reputation: 0
Joined: 15 Jan 2007 Posts: 753 Location: Who wants to know?
|
Posted: Fri Jan 18, 2008 2:31 pm Post subject: |
|
|
| Thank you for the tip, +rep
|
|
| Back to top |
|
 |
Heartless I post too much
Reputation: 0
Joined: 03 Dec 2006 Posts: 2436
|
Posted: Fri Jan 18, 2008 7:20 pm Post subject: |
|
|
| Code: |
#include <iostream>
using namespace std;
int main()
{
cout << "Hello, World!" << endl;
return 0;
}
|
I just took out the parts you don't need, and add something that makes it eaiser.
_________________
What dosen't kill you, usually does the second time. |
|
| Back to top |
|
 |
|