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++ strin question

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Random spam
View previous topic :: View next topic  
Author Message
paupav
Master Cheater
Reputation: 13

Joined: 15 Apr 2011
Posts: 314
Location: P. Sherman 42, Wallaby Way, Sydney

PostPosted: Sun Feb 12, 2012 6:07 am    Post subject: c++ strin question Reply with quote

i use string as a password in console application like:

if enter string correct you can see program... and i wonder is possible to make it when entering password instead of letters you see * or some other caracter?
Back to top
View user's profile Send private message
C-Dizzle
Grandmaster Cheater
Reputation: 89

Joined: 16 Mar 2008
Posts: 623

PostPosted: Sun Feb 12, 2012 6:57 am    Post subject: Reply with quote

Code:
string password = "";
char c = ' ';

while(c != 13) //Loop until 'Enter' is pressed
   {
   c = getch();
   password += c;
   cout << "*";
   }


I found this but apparently if you press delete or backspace it counts that as an asterisk. But basically what you are looking for is character masking.

http://www.cplusplus.com/forum/general/3570/#msg15410 This contains (I think) the same sort of thing but that can handle back spaces and what not. Although, it's far too complex for me at the moment sorry.
Back to top
View user's profile Send private message
the the the
Master Cheater
Reputation: 46

Joined: 15 Jun 2008
Posts: 429

PostPosted: Sun Feb 12, 2012 12:40 pm    Post subject: Reply with quote

look your password is a wordfilter: ************
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Random spam 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