Код: Выделить всё
#include <stdafx.h>
#include <conio.h>
using namespace std;
int main(){
int ch;
while((ch=getchar())!=10)
cout << ch << endl;
}
Код: Выделить всё
#include <stdafx.h>
#include <conio.h>
using namespace std;
int main(){
int ch;
while((ch=getch())!=10)
cout << ch << endl;
}