To enter a string, I was instructed to use gets(str) rather than cin.
In the programme below, though, I can use cin perfectly well.
Could you please tell me if you can use cin?
Please accept my apologies for my poor English.
The application allows you to enter up to five names and then print them on the screen.
The code is as follows:
#include <iostream>
#include <string.h>
using namespace std;
int main()
{
...READ MORE
Jun 27, 2022
in C++
by
Nicholas
• 7,760 points
•
364 views