返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {   
  6.     int number =10;
  7.    
  8.     cout<<"number"<<endl;
  9.     cout<<"luke"<<endl;
  10.     cin>>a
  11.     cout<<number<<endl;

  12.     system("pause");
  13.    
  14.    
  15.     return 0;
  16. }
複製代碼

TOP

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int a;
  7.     cout <<"請輸入一整 數"
  8.    
  9.     system("pause")
  10.     return 0;
  11. }
  12.    
複製代碼

TOP

  1. #include<iostream>
  2. #include<cs
  3.    
  4.    
  5.     return 0;
  6.     int x=23;
  7.     int y=7;
  8.     cout<<"x=y"<<x+=y<<endl;
  9.     cout<<"x=y"<<x-=y<<endl;
  10.      
  11.     cout<<"x=y"<<x*=y<<endl;
  12.     cout<<"x=y"<<x/=y<<endl;
  13.     cout<<"x=y"<<x%=y<<endl;
  14.     syste("pause"
  15. }
複製代碼

TOP

#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{   
    int x=28,y=15;
    cout<<"當x的值為"<<x<<",y的值為"<<y<<"時...."<<endl;
   cout<<"x+y="<<x+y<<endl;  
   cout<<"x-y="<<x-y<<endl;  
   cout<<"x*y="<<x*y<<endl;  
   cout<<"x/y="<<x/y<<endl;  
   cout<<"x%y="<<x%y<<endl;  

system("pause");
return 0;
}

TOP

返回列表