cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
fgets in C Programming
fgets in C Programming
Jul 10, 2013 at 3:16pm UTC
goshqie
(1)
fgets(asked_hotel, sizeof(asked_hotel)-1, stdin);
asked_hotel[strlen(asked_hotel)-1] = '\0';
//scanf("\n%99s", &asked_hotel);
printf("The hotels matching what you searched are:\n\n");
Last edited on
Jul 11, 2013 at 8:27am UTC
Jul 10, 2013 at 5:48pm UTC
vlad from moscow
(6539)
Could you say above all what is your problem?
Topic archived. No new replies allowed.