what does this mean
Code:ch = getch(); while(ch !='\r') { pass[i]=ch; printf("*"); i++; ch = getch(); }
what does this mean
Code:ch = getch(); while(ch !='\r') { pass[i]=ch; printf("*"); i++; ch = getch(); }
gets a char from input buffer, as long as its not a '\r' character it stores that character in an array and then prints * to the screen, increments index, and gets another char. It keeps going until the user enters '\r'.
It means someone doesn't know how to indent properly.
Was it written by Pablo Picasso?
"I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008
"the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010
pass Array can't be unlimited.
You store until \r but what about reading a paragraph with 1000 letters ?
Is your array ready to store ?
"No-one else has reported this problem, you're either crazy or a liar" - Dogbert Technical Support
"Have you tried turning it off and on again?" - The IT Crowd
Famous last words before an attacker exploits a buffer overflow vulnerability?Originally Posted by QuantumPete
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
"No-one else has reported this problem, you're either crazy or a liar" - Dogbert Technical Support
"Have you tried turning it off and on again?" - The IT Crowd