程序源代码03

貢獻者:- - 類別:代码 時間:2018-12-20 14:03:08 收藏數:15 評分:0
返回上页 舉報此文章
请选择举报理由:




收藏到我的文章 改錯字
#include<iostream> using namespace std; int main() { int a,b,c; double d,e; a=5; b=6;
d=2.53; c=a+b; e=c+d; cout<<a<<"+"<<b<<"="<<c<<endl; cout<<c<<"+"<<d<<"="<<e<<endl;
return 0; }#include<iostream> using namespace std; int main() { long long a=2147483647;
a=a+1; cout<<"a="<<a<<endl; return 0; }#include<iostream> using namespace std; int main
() { int b=0,a=100; char ch='A'; b=a+ch; cout<<ch<<" "<<int(ch)<<" "<<b<<endl; return 0;
}#include<iostream> using namespace std; int main() { cout<<sizeof(char)<<endl;
cout<<sizeof(int)<<endl; cout<<sizeof(unsigned int)<<endl; cout<<sizeof(long int)<<endl;
cout<<sizeof(short int)<<endl; cout<<sizeof(float)<<endl; cout<<sizeof(double)<<endl;
return 0; }#include<iostream> using namespace std; int main() { int a; a=3;
cout<<a<<endl; a=10; cout<<a<<endl; a=a*5; cout<<a<<endl; return 0; }#include<iostream>
using namespace std; int main() { char c1,c2,c3; c1=48; c2=65; c3=97; cout<<c1<<"
"<<c2<<" "<<c3<<" "; cout<<int(c1)<<" "<<int(c2)<<" "<<int(c3)<<endl; return 0; }
#include<iostream> using namespace std; int main() { char c1,c2,c3; c1='a'; c2='Z';
c1=c1-32; c2=c2+32; c3='0'+9; cout<<c1<<" "<<c2<<" "<<c3<<endl; return 0; }
声明:以上文章均为用户自行添加,仅供打字交流使用,不代表本站观点,本站不承担任何法律责任,特此声明!如果有侵犯到您的权利,请及时联系我们删除。
文章熱度:
文章難度:
文章質量:
說明:系統根據文章的熱度、難度、質量自動認證,已認證的文章將參與打字排名!

本文打字排名TOP20

登录后可见

用户更多文章推荐