物品的存放(变量)

 1 //物品存放(变量)
 2 #include<iostream>
 3 using namespace std;
 4 int main(){
 5     int i=1;
 6     short j=2;
 7     long k=3;
 8     float ii=1.1;
 9     double jj=1.234;
10     long double kk=1.23456;
11     cout<<"i="<<i<<endl;
12     cout<<"j="<<j<<endl;
13     cout<<"k="<<k<<endl;
14     cout<<"ii="<<ii<<endl;
15     cout<<"kk="<<kk<<endl;
16     return 0;
17 } 

 

posted @ 2018-06-16 10:50  无心小男  阅读(249)  评论(0编辑  收藏  举报