转义字符字符风格
#include<iostream>
using namespace std;
#include<string.h>
int main(){
//1.c语言风格
char str[]="hello world";
cout<<str<<endl;
//2.c++风格
string str2="hello world";
cout<<str2<<endl;
system("pause");
}
#include<iostream>
using namespace std;
#include<string.h>
int main(){
bool flag=true;
cout<<flag<<endl;
flag=false;
cout<<flag<<endl;
cout<<"size of bool = "<<sizeof(bool)<<endl;
system("pause");
}
输入cin>>
输出 cout<<