Horje
cin does not wait for input Code Example
cin does not wait for input
/* cin stops taking input on whitespace encounter
* so if you pass "Prakhar Patel" into cin>>name;
* only "Prakhar" will be stored into name.
* "Patel" will stay in stream and will come into next cin statement.
*/

getline(cin,fullname,'\n'); //use this to capture input stream till \n




Cpp

Related
phph date Code Example phph date Code Example
how to find product of a given numbers in c++ Code Example how to find product of a given numbers in c++ Code Example
assignment operator with pointers c++ Code Example assignment operator with pointers c++ Code Example
c++ while loop Code Example c++ while loop Code Example
dynamic memory in c++ Code Example dynamic memory in c++ Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7