Posts by Leonardo • 13 points
1 post
-
-1
votes1
answer379
viewsQ: How to read multiple lines in c++ without using file
I need to make a program in c++ that reads a multi-line input and stores each line(string) in an array. I’ve tried using the cin.eof() and fgets() but it didn’t work. #include<iostream>…