67 155
Assignments Done
99,4%
Successfully Done
In November 2018

Answer to Question #14917 in C++ for David Wesson

Question #14917
how do you read a line from standard i/o into buffer, a char array?
Expert's answer
#include <stdio.h>

#include <conio.h>
#include <iostream>
using namespace std;

int main(){
char buffer[100];
cout<<"Reading into an array of characters to enter\n";
gets(buffer); &
printf("%s",buffer);
cout<<"\n";
system("PAUSE");
&
}
&

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions