Created
April 16, 2016 07:51
-
-
Save tanvir002700/a6ae36f27b3a47b2105589ac9815abdf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<string> | |
#include<stdlib.h> | |
using namespace std; | |
int main() | |
{ | |
string inp; | |
cin>>inp; | |
cout<<"First input: "<<inp<<endl; | |
cin.ignore(); | |
getline(cin,inp); | |
cout<<"Second input: "<<inp<<endl; | |
printf("%s",inp.c_str()); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gets and getline er moddhe difference ki? ar getline use korte cin er kaj ki?