+ 2
Why am i not able to run my code?
i have added cin.get(line,MAX,'\n'); to my code but it doesn't asks me for an input... while the code works perfectly when i replace it with cin>>line; ... what's the issue? https://code.sololearn.com/cb5R2USeuSlg/?ref=app
3 Answers
+ 3
https://www.sololearn.com/discuss/974706/?ref=app
See this post for some info on how to get cin.get() to read input.
+ 8
all is fine!
sololearn input is a bit special
0
Seems fine to me.