18 lines
432 B
C++
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");
|
|
} |