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 


run

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

Joined: 24 Feb 2007
Posts: 85

PostPosted: Tue Aug 26, 2008 9:17 am    Post subject: run Reply with quote

well i want to learn c++ cause i heard its the best virus code

but i just started so i dont no anything
http://www.cplusplus.com/doc/tutorial/program_structure.html
thats the website i was looking at, i got the programs
*vim
*dev-c++

on the website it says
// my first program in C++

#include <iostream>
using namespace std;

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

all it should say is hello world but i dont no how to run it, when i put it in dev c++ and compile and run it compiles then cmd propt comes up for 1 second then closes and nothing happens.

so how do i make the program run

_________________
i would if i could but i cant so i dont

care to share
Back to top
View user's profile Send private message
HalfPrime
Grandmaster Cheater
Reputation: 0

Joined: 12 Mar 2008
Posts: 532
Location: Right there...On your monitor

PostPosted: Tue Aug 26, 2008 9:20 am    Post subject: Reply with quote

cin.sync();cin.ignore();
between the cout and return. you're not pausing execution, so it will just run and exit.

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

Joined: 24 Feb 2007
Posts: 85

PostPosted: Tue Aug 26, 2008 9:41 am    Post subject: Reply with quote

what is a better compiler to use i click compile and run and it does nothing i dont no y, so whats a good free program
_________________
i would if i could but i cant so i dont

care to share
Back to top
View user's profile Send private message
Typhoon808
Expert Cheater
Reputation: 0

Joined: 27 Mar 2008
Posts: 175
Location: Wales

PostPosted: Tue Aug 26, 2008 9:56 am    Post subject: Reply with quote

I'm sure 95% of people here would recommend Visual Studio/Visual C++ Express Edition.
Back to top
View user's profile Send private message
HalfPrime
Grandmaster Cheater
Reputation: 0

Joined: 12 Mar 2008
Posts: 532
Location: Right there...On your monitor

PostPosted: Tue Aug 26, 2008 10:01 am    Post subject: Reply with quote

Get MS Visual Studio 2008 Express Edition.
_________________
Back to top
View user's profile Send private message
Fuzz
Grandmaster Cheater
Reputation: 0

Joined: 12 Nov 2006
Posts: 531

PostPosted: Tue Aug 26, 2008 11:05 am    Post subject: Reply with quote

// my first program in C++

#include <iostream>
using namespace std;

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

return 0;
cin.sync();
cin.ignore();
}
Back to top
View user's profile Send private message AIM Address
TeNsIOn
Advanced Cheater
Reputation: 0

Joined: 10 Jun 2008
Posts: 66

PostPosted: Mon Sep 01, 2008 4:05 pm    Post subject: Reply with quote

Fuzz wrote:
// my first program in C++

#include <iostream>
using namespace std;

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

return 0;
cin.sync();
cin.ignore();
}


Wtf? gay...

#include <iostream>
using namespace std;

int main ()
{
cout << "Hello World!";
//This is way easier
system("PAUSE")
return 0;

}

_________________
Respect List

- DarkByte
- x0r
- Wiccaan
_________________
My Projects
_________________
- Combat Arms D3D Hook (Just need a bypass)
- Maple Story Trainer
- WarRock D3D Hook (needs bypass)
Back to top
View user's profile Send private message
manc
Grandmaster Cheater
Reputation: 1

Joined: 16 Jun 2006
Posts: 551

PostPosted: Mon Sep 01, 2008 5:01 pm    Post subject: Reply with quote

Fuzz's code will work perfect.
Tension's will add an unnecessary line and use more unneeded resources, but will still work.

_________________
Back to top
View user's profile Send private message
pkedpker
Master Cheater
Reputation: 1

Joined: 11 Oct 2006
Posts: 412

PostPosted: Mon Sep 01, 2008 5:19 pm    Post subject: Reply with quote

Fuzz's code will not work at all.. becasue the program returns and he gives it more commands after it already returned.. meaning what he did is impossible to compile and run.
_________________
Hacks I made for kongregate.
Kongregate Universal Badge Hack: http://forum.cheatengine.org/viewtopic.php?p=4129411
Kongreate Auto Rating/Voter hack: http://forum.cheatengine.org/viewtopic.php?t=263576
Took a test lol
Back to top
View user's profile Send private message
Wintermoot
Expert Cheater
Reputation: 0

Joined: 08 Nov 2007
Posts: 198

PostPosted: Mon Sep 01, 2008 5:32 pm    Post subject: Reply with quote

Fuzz wrote:
// my first program in C++

#include <iostream>
using namespace std;

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

cin.sync();
cin.ignore();
return 0;
}

Fixed.
TeNsIOn wrote:


Wtf? gay...

#include <iostream>
using namespace std;

int main ()
{
cout << "Hello World!";
//This is way easier
system("PAUSE")
return 0;

}

This is slow and, an abuse to C++.
Back to top
View user's profile Send private message
pkedpker
Master Cheater
Reputation: 1

Joined: 11 Oct 2006
Posts: 412

PostPosted: Mon Sep 01, 2008 5:35 pm    Post subject: Reply with quote

and no i would just use.

printf("press any key to exit\n");
getchar();

and wait until you press any button on keyboard then it will go to next line aka return.. and exit.. yah..

_________________
Hacks I made for kongregate.
Kongregate Universal Badge Hack: http://forum.cheatengine.org/viewtopic.php?p=4129411
Kongreate Auto Rating/Voter hack: http://forum.cheatengine.org/viewtopic.php?t=263576
Took a test lol
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