CPlusPlusThings/practical_exercises/10_day_practice/day10/文件例题/12-3.cpp
Light-City a4d828bb4c update
2020-04-06 00:57:02 +08:00

18 lines
432 B
C++

#include<iostream>
using namespace std;
//º¯ÊýÔ­ÐÍ
//put(char c)
//write(const char*c, int n)
int main(){
char c;
char a[50]="this is a string...";
cout<<"use get() input char:";
while((c=cin.get())!='\n'){
cout.put(c);
cout.put('\n');
cout.put('t').put('h').put('i').put('s').put('\n');
cout.write(a,12).put('\n');
cout<<"look"<<"\t here!"<<endl;
}
system("pause");
}