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 


c++

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
forsakentj
How do I cheat?
Reputation: 0

Joined: 10 Sep 2008
Posts: 1

PostPosted: Thu Sep 11, 2008 2:15 am    Post subject: c++ Reply with quote

ok i have problem ....
i added all my source files and for some reason your enter your name then the application exits i have no idea why and i need some help to fix it



The Extension 'zip' was deactivated by an board admin, therefore this Attachment is not displayed.

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

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Thu Sep 11, 2008 1:01 pm    Post subject: Reply with quote

the source is seriously 'wtf'

You have about 50 million problems with your math

Code:
money - 20;
isn't going to do anything.

Code:
money = money - 20;
however is another story

or
Code:
money -= 20;


You often try to do a comparison rather than assigning a value

Code:
health == maxhealth
is comparing, not assigning

I didn't find anything about entering the players name?
Back to top
View user's profile Send private message
pkedpker
Master Cheater
Reputation: 1

Joined: 11 Oct 2006
Posts: 412

PostPosted: Thu Sep 11, 2008 3:57 pm    Post subject: Reply with quote

yah first of all this kind of project will make you fail your programming class.. too much namespaces. Functions inside header files those are ment for interfaces/prototypes only

too much mains there should only be 1 main thats the entry point to program well thats not that bad.. if every main was the start of a script or town whatever but anyways yah the math is wrong u gotta do what the person above said..

The reason it exits cuz you don't have getchar() or even while(getchar()) {} at the end

you should look at your warnings I bet you got atleast 30 warnings if not more.. about the operators has no effect on operation.


Also what is this

Code:


        case 3:
              (number = 1)
              (strength + number);
              (day+1);
              (number = 0)



that won't even compile everything has to end with a ; at the end



The Extension 'zip' was deactivated by an board admin, therefore this Attachment is not displayed.


_________________
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
deleted19776
I post too much
Reputation: 11

Joined: 29 Apr 2007
Posts: 3838

PostPosted: Sat Sep 13, 2008 3:12 pm    Post subject: Reply with quote

Lol, at least he's better than me with C++, i just started.
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