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 


How to make programs

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
xV
I post too much
Reputation: 1

Joined: 03 Jan 2008
Posts: 3783
Location: Seattle

PostPosted: Fri Oct 24, 2008 7:20 pm    Post subject: How to make programs Reply with quote

Say I wanted to make a program that says this:

Code:
// my first program in C++

#include <iostream>
using namespace std;

int main ()
{
  cout << "Hello World!";
  return 0;
}


How would I do that? I don't have a clue what to do, although I know what the program does. I'm also using Microsoft Visual C++ Express Edition 2008 SP1.

_________________
Back to top
View user's profile Send private message MSN Messenger
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Fri Oct 24, 2008 7:21 pm    Post subject: Reply with quote

Compile and run it.
Back to top
View user's profile Send private message
xV
I post too much
Reputation: 1

Joined: 03 Jan 2008
Posts: 3783
Location: Seattle

PostPosted: Fri Oct 24, 2008 7:22 pm    Post subject: Reply with quote

slovach wrote:
Compile and run it.


But how? What kind of file/project would I open? Also, what would I put it in? A .h file or a .cpp file? I don't really know the difference between them.

_________________
Back to top
View user's profile Send private message MSN Messenger
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Fri Oct 24, 2008 7:28 pm    Post subject: Reply with quote

Create an empty project.
Right click a folder in the tree view (preferably 'Source Files'), add a new cpp file.
Code whatever, compile, run.
Back to top
View user's profile Send private message
xV
I post too much
Reputation: 1

Joined: 03 Jan 2008
Posts: 3783
Location: Seattle

PostPosted: Fri Oct 24, 2008 7:30 pm    Post subject: Reply with quote

slovach wrote:
Create an empty project.
Right click a folder in the tree view (preferably 'Source Files'), add a new cpp file.
Code whatever, compile, run.


Okay I'll try that. Thanks.

Uhh.. One more question, what kind of project would I use? There's a lot of ooptions, Class Library, CLR Empty Project, CLR Console Application, Windows Forms Application. There's more.. but I'm not sure xD

_________________
Back to top
View user's profile Send private message MSN Messenger
BirdsEye
Advanced Cheater
Reputation: 0

Joined: 05 Apr 2008
Posts: 94

PostPosted: Fri Oct 24, 2008 7:40 pm    Post subject: Reply with quote

xViBeSz wrote:
slovach wrote:
Create an empty project.
Right click a folder in the tree view (preferably 'Source Files'), add a new cpp file.
Code whatever, compile, run.


Okay I'll try that. Thanks.

Uhh.. One more question, what kind of project would I use? There's a lot of ooptions, Class Library, CLR Empty Project, CLR Console Application, Windows Forms Application. There's more.. but I'm not sure xD


For now I'd recommend to stick to Win32 projects. You can tell what type of project you should select by look at the entry point. This uses main( ) should it should be a Win32 console project. (A regular Win32 project would have WinMain( )) Header files are usually inserted to make the project more organized like you'd put your definitions or even declarations. A cpp file essentially contains your source code. It would contain what you have above, the entry point, variables, functions, and so on.
Back to top
View user's profile Send private message
xV
I post too much
Reputation: 1

Joined: 03 Jan 2008
Posts: 3783
Location: Seattle

PostPosted: Fri Oct 24, 2008 7:45 pm    Post subject: Reply with quote

BirdsEye wrote:
xViBeSz wrote:
slovach wrote:
Create an empty project.
Right click a folder in the tree view (preferably 'Source Files'), add a new cpp file.
Code whatever, compile, run.


Okay I'll try that. Thanks.

Uhh.. One more question, what kind of project would I use? There's a lot of ooptions, Class Library, CLR Empty Project, CLR Console Application, Windows Forms Application. There's more.. but I'm not sure xD


For now I'd recommend to stick to Win32 projects. You can tell what type of project you should select by look at the entry point. This uses main( ) should it should be a Win32 console project. (A regular Win32 project would have WinMain( )) Header files are usually inserted to make the project more organized like you'd put your definitions or even declarations. A cpp file essentially contains your source code. It would contain what you have above, the entry point, variables, functions, and so on.


Okay, should I use Win32 Console App, or just plain Win32 Project?

Thanks for your help.

_________________
Back to top
View user's profile Send private message MSN Messenger
clanner
Master Cheater
Reputation: 0

Joined: 26 Jul 2006
Posts: 290

PostPosted: Fri Oct 24, 2008 8:34 pm    Post subject: Reply with quote

Console app is what you should use for that type of code.
Back to top
View user's profile Send private message AIM Address
xV
I post too much
Reputation: 1

Joined: 03 Jan 2008
Posts: 3783
Location: Seattle

PostPosted: Fri Oct 24, 2008 8:37 pm    Post subject: Reply with quote

clanner wrote:
Console app is what you should use for that type of code.


Oh thanks, I was using the other one.. Surprised

_________________
Back to top
View user's profile Send private message MSN Messenger
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