I was trying the problem SBANK. After taking the inputs, it requires us to input an empty line. I tried using getch(), but it is giving me a clompilation error:
/sources/tested.cpp:5:18: error: conio.h: No such file or directory
/sources/tested.cpp: In function 'int main()':
/sources/tested.cpp:27: error: 'getch' was not declared in this scope
Maybe it is due to the header file 'conio.h' I am using, but that is the only place where we can have getch() declared.
"cin>>" doesn't work as it takes '\n' as the delimiter...
Can someone help me on this..?
created
last reply
- 12
replies
- 4.7k
views
- 4
users
- 1
link