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++ cin

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

Joined: 26 Nov 2006
Posts: 404

PostPosted: Fri Jan 23, 2009 11:00 pm    Post subject: C++ cin Reply with quote

me are confuses on

cin.get
and
cin.getline

and help?
oh, what are the augments for them?

thanks

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

Joined: 07 Oct 2007
Posts: 468

PostPosted: Sat Jan 24, 2009 1:21 am    Post subject: Reply with quote

http://www.cplusplus.com/reference/iostream/istream/get.html

http://www.cplusplus.com/reference/iostream/istream/getline.html
Back to top
View user's profile Send private message MSN Messenger
&Vage
Grandmaster Cheater Supreme
Reputation: 0

Joined: 25 Jul 2008
Posts: 1053

PostPosted: Sat Jan 24, 2009 11:17 am    Post subject: Reply with quote

Use gets();
Back to top
View user's profile Send private message
hacksign23
Master Cheater
Reputation: 0

Joined: 26 Nov 2006
Posts: 404

PostPosted: Sun Jan 25, 2009 11:57 pm    Post subject: Reply with quote

kk thanks guys
_________________
Back to top
View user's profile Send private message AIM Address
Heartless
I post too much
Reputation: 0

Joined: 03 Dec 2006
Posts: 2436

PostPosted: Mon Jan 26, 2009 5:08 pm    Post subject: Reply with quote

Code:
char szLine[MAX_PATH];
std::cin.getline(szLine, MAX_PATH);


The getline function gets the line you typed in the console and puts it in a string. The first parameter is the string you want to store the line in. The second parameter is the number of characters to be copied.

Code:
int iLine;
std::cin.get << iLine;


I forgot but I think this is how you use the get function. It gets an interger you inputed and stores it in a integer.

_________________
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