Gets() and puts()... header file for these functions :/ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Gets() and puts()... header file for these functions :/

stdio is not working ... so what's the right file to include

12th Aug 2017, 4:23 PM
syscall
syscall  - avatar
4 Answers
+ 4
Try using cstdlib or cstdio...
28th Aug 2017, 11:50 AM
Kinshuk Vasisht
Kinshuk Vasisht - avatar
+ 1
uhh but stdlib.h isn't working here ... damn it
13th Aug 2017, 3:51 AM
syscall
syscall  - avatar
0
Those functions are from C standard library. You have to include stdlib.h to use them but it's recommended to use getline() instead. Getline is C++ "native" function and it's just better to use it.
13th Aug 2017, 3:42 AM
Grzegorz Skryty
Grzegorz Skryty - avatar
0
can you post here all your code? What type of error is raised?
15th Aug 2017, 10:27 PM
Grzegorz Skryty
Grzegorz Skryty - avatar