C++初入门代码练习
#include<iostream>
using namespace std;
int main(){
int a,b;
float a,b;
char a,b;
string a,b;
a=1;
b='<CR>';
//<CR>为回车
cin>>"";
cout<<"";
scanf("%i%f%c",&a,&b,&c);
printf("%i\n%f\t%c",a,b,c);
if(a==1||b<='o'){
cout<<c;
}else{
cout<<d;
}else if(a!=2&&b>=i){
cout<<a<<b;
}
switch(a){
case 1:
case 2:
cout<<"z";
break;
case 3:
cout<<e;
break;
default:
cout<<"f";
}
return 0;
}
/*
块注释
*/
using namespace std;
int main(){
int a,b;
float a,b;
char a,b;
string a,b;
a=1;
b='<CR>';
//<CR>为回车
cin>>"";
cout<<"";
scanf("%i%f%c",&a,&b,&c);
printf("%i\n%f\t%c",a,b,c);
if(a==1||b<='o'){
cout<<c;
}else{
cout<<d;
}else if(a!=2&&b>=i){
cout<<a<<b;
}
switch(a){
case 1:
case 2:
cout<<"z";
break;
case 3:
cout<<e;
break;
default:
cout<<"f";
}
return 0;
}
/*
块注释
*/
Last one:High-Speed Railway in China
Next one:鬼故事-同学会
声明:以上文章均为用户自行添加,仅供打字交流使用,不代表本站观点,本站不承担任何法律责任,特此声明!如果有侵犯到您的权利,请及时联系我们删除。
Hot degree:★☆☆☆☆
Difficulty:☆☆☆☆☆
quality:☆☆☆☆☆
Description: the system according to the heat, the difficulty, the quality of automatic certification, the certification of the article will be involved in typing!
This paper typing ranking TOP20
登录后可见