返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main();
  5. {
  6.     string name="賈伯斯",
  7.     int age=56;
  8.     float height=187.96,weight=59;
  9.     cout<<"大名:"<<name<<endl;
  10.     cout<<"死亡"<<age<<"歲"<<endl;
  11.     cout<<"身高"<<height<<"公分"<<endl;
  12.     cout<<"體重"<<weight<<"公斤"<<endl;
  13.     system("pause")
複製代碼

TOP

#include<iostream
#include<cstdlib>
using namespace std;
int main()
{
    string name="賈伯斯",
    int age=56;
    float height=187.96,weight=59;
    cout<<"大名:"<<name<<endl;
    cout<<"死亡"<<age<<"歲"<<endl;
    cout<<"身高"<<height<<"公分"<<endl;
    cout<<"體重"<<weight<<"公斤"<<endl;
    system("pause") [/code]

TOP

返回列表