+ 1
gets function (C++)
any know why below code could not return the value? #include<iostream> #include<cstdio> using namespace std; int main() { char m[90]; gets(m); cout<<m; return 0; }
3 Answers
+ 20
gets is creating problem why don't u use cin.getline() function for inputting string
+ 6
Did you call main()?
0
@vengat
what main? sorry i'm newbie..