Are stream, buffer and flushing the buffer present in algo++ course
In algo++ course
How can we request to add them?
#include #include using namespace std; int main(){ int n; cin>>n; char a[1000]; fflush(stdin); for(int i=0;i<n;i++){ cin.getline(a,1000); cout<<a<<endl; } }
in the code of largest string can we use cout<<endl; insted of cin.get();
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.