Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


A little help.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
kokee101
Grandmaster Cheater
Reputation: 0

Joined: 15 Jan 2007
Posts: 753
Location: Who wants to know?

PostPosted: Fri Jan 18, 2008 1:13 am    Post subject: A little help. Reply with quote

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
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Fri Jan 18, 2008 1:32 am    Post subject: Reply with quote

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
View user's profile Send private message
kokee101
Grandmaster Cheater
Reputation: 0

Joined: 15 Jan 2007
Posts: 753
Location: Who wants to know?

PostPosted: Fri Jan 18, 2008 1:54 am    Post subject: Reply with quote

Lol, part of a tut, just trying to get it to work.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Fri Jan 18, 2008 7:29 am    Post subject: Reply with quote

As appal said, the code you posted is a bit outdated compared to what is used now. I suggest looking for a more up to date tutorial, and be sure to use the suggested IDE/Compiler the tutorial was written with.

For the code appal posted, I suggest you get Visual Studio 2005/2008 from Microsoft via the Express editions.

A more commonly seen and used site for C++ tutorials would be:
http://cplusplus.com/doc/tutorial/introduction.html

Good luck. Smile

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
kokee101
Grandmaster Cheater
Reputation: 0

Joined: 15 Jan 2007
Posts: 753
Location: Who wants to know?

PostPosted: Fri Jan 18, 2008 2:31 pm    Post subject: Reply with quote

Thank you for the tip, +rep
Back to top
View user's profile Send private message
Heartless
I post too much
Reputation: 0

Joined: 03 Dec 2006
Posts: 2436

PostPosted: Fri Jan 18, 2008 7:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites