+ 2
What are the different ways to input a string in C++?
How many ways are there..!! I only know by Cin '
2 Réponses
+ 8
fgets, getline, scanf("%s",), fscanf
+ 3
You can use cin, cin.get, cin.getline, gets to input a string.
Check out documentation in other sites to clearly understand how to use each of them.✌🏼