语法:cin>>输入 输入输出请打开iostream头文件 #include<iostream> cout<<"请用户输入a的数值"<<endl; cin>>a; cout<<"用户输入的a的值为"<<a<<endl;