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 


i just started c++,can anyone help me with this error
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Chidori
Grandmaster Cheater
Reputation: 1

Joined: 25 Apr 2008
Posts: 691
Location: Canada

PostPosted: Wed Sep 03, 2008 6:56 pm    Post subject: i just started c++,can anyone help me with this error Reply with quote

yah i dont think its anything worng with the script,please don't get mad i just started


myc++ error.JPG
 Description:
 Filesize:  77.8 KB
 Viewed:  6215 Time(s)

myc++ error.JPG


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

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Wed Sep 03, 2008 6:58 pm    Post subject: Reply with quote

Try Build -> Rebuild solution, then try running it.
Back to top
View user's profile Send private message
Chidori
Grandmaster Cheater
Reputation: 1

Joined: 25 Apr 2008
Posts: 691
Location: Canada

PostPosted: Wed Sep 03, 2008 7:00 pm    Post subject: Reply with quote

slovach wrote:
Try Build -> Rebuild solution, then try running it.
uh where do i go to run it?
Back to top
View user's profile Send private message AIM Address MSN Messenger
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Wed Sep 03, 2008 7:04 pm    Post subject: Reply with quote

Hit control-f5
Back to top
View user's profile Send private message
Chidori
Grandmaster Cheater
Reputation: 1

Joined: 25 Apr 2008
Posts: 691
Location: Canada

PostPosted: Wed Sep 03, 2008 7:07 pm    Post subject: Reply with quote

slovach wrote:
Hit control-f5
same error T_T
Back to top
View user's profile Send private message AIM Address MSN Messenger
kitterz
Grandmaster Cheater Supreme
Reputation: 0

Joined: 24 Dec 2007
Posts: 1268

PostPosted: Wed Sep 03, 2008 7:17 pm    Post subject: Reply with quote

chidori257 wrote:
slovach wrote:
Hit control-f5
same error T_T


This error occurs once in a while to me. Delete the "Debug" or "Release" folder containing the exe. Then rebuild it.

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

Joined: 11 Oct 2006
Posts: 412

PostPosted: Wed Sep 03, 2008 9:40 pm    Post subject: Reply with quote

error just means the file doesn't exist you gotta compile it.

Build -> Build All -> Clean

then

Build -> Build All -> Build

_________________
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
Chidori
Grandmaster Cheater
Reputation: 1

Joined: 25 Apr 2008
Posts: 691
Location: Canada

PostPosted: Thu Sep 04, 2008 3:02 pm    Post subject: Reply with quote

pkedpker wrote:
error just means the file doesn't exist you gotta compile it.

Build -> Build All -> Clean

then

Build -> Build All -> Build
um ma use a diffrent compiler what do u recommend?
EDIT: i am now using devc++,this must be a simple error how can i fix this



devc++.JPG
 Description:
 Filesize:  121.94 KB
 Viewed:  6119 Time(s)

devc++.JPG


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

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Thu Sep 04, 2008 3:44 pm    Post subject: Reply with quote

chidori257 wrote:
pkedpker wrote:
error just means the file doesn't exist you gotta compile it.

Build -> Build All -> Clean

then

Build -> Build All -> Build
um ma use a diffrent compiler what do u recommend?
EDIT: i am now using devc++,this must be a simple error how can i fix this


It's because it's forcing goodness. Change it to int main and return a value.
Back to top
View user's profile Send private message MSN Messenger
HalfPrime
Grandmaster Cheater
Reputation: 0

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

PostPosted: Thu Sep 04, 2008 4:30 pm    Post subject: Reply with quote

And before you ask why your program closes as soon as you open it, put
Code:
cin.sync();
cin.ignore();

before the return 0;.

_________________
Back to top
View user's profile Send private message
kitterz
Grandmaster Cheater Supreme
Reputation: 0

Joined: 24 Dec 2007
Posts: 1268

PostPosted: Thu Sep 04, 2008 5:17 pm    Post subject: Reply with quote

HalfPrime wrote:
And before you ask why your program closes as soon as you open it, put
Code:
cin.sync();
cin.ignore();

before the return 0;.


Donn't make assumptions, please.

If you even looked at the pic, the tut he is using if off of youtube, so the code must work. Rolling Eyes

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

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Thu Sep 04, 2008 7:30 pm    Post subject: Reply with quote

kitterz wrote:
HalfPrime wrote:
And before you ask why your program closes as soon as you open it, put
Code:
cin.sync();
cin.ignore();

before the return 0;.


Donn't make assumptions, please.

If you even looked at the pic, the tut he is using if off of youtube, so the code must work. Rolling Eyes


Rolling Eyes

Yeah, because it's on youtube, it just has to work flawlessly.
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: Thu Sep 04, 2008 9:07 pm    Post subject: Reply with quote

If you looked at the code in the picture, you'd see he only has cout statements.
_________________
Back to top
View user's profile Send private message
TehBlue
Newbie cheater
Reputation: 0

Joined: 14 Jul 2008
Posts: 10

PostPosted: Fri Sep 05, 2008 3:43 pm    Post subject: Reply with quote

chidori257 wrote:
pkedpker wrote:
error just means the file doesn't exist you gotta compile it.

Build -> Build All -> Clean

then

Build -> Build All -> Build
um ma use a diffrent compiler what do u recommend?
EDIT: i am now using devc++,this must be a simple error how can i fix this


try this
#include <iostream>
using namespace std;

int main(){
// code here
}

use int instead of void
Back to top
View user's profile Send private message
pkedpker
Master Cheater
Reputation: 1

Joined: 11 Oct 2006
Posts: 412

PostPosted: Fri Sep 05, 2008 3:53 pm    Post subject: Reply with quote

TehBlue wrote:
chidori257 wrote:
pkedpker wrote:
error just means the file doesn't exist you gotta compile it.

Build -> Build All -> Clean

then

Build -> Build All -> Build
um ma use a diffrent compiler what do u recommend?
EDIT: i am now using devc++,this must be a simple error how can i fix this


try this
#include <iostream>
using namespace std;

int main(){
// code here
}

use int instead of void


yes use a int main() {}

also int in front means its a function so it must return something at the end before the }.

so its

int main() {
//code here
return 0;
}

_________________
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
Goto page 1, 2  Next
Page 1 of 2

 
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