⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 2-1.cc

📁 一个qt设计的教程
💻 CC
字号:
#include <iostream.h>class car{public:    int weight;    int length;    int width;    int topspeed;    int horsepower;};main(){  car a_car;  cout<<"define the car's weight!\n:";  cin>>a_car.weight;  cout<<"define the car's length!\n:";  cin>>a_car.length;    cout<<"define the car's width!\n:";  cin>>a_car.width;  cout<<"define the car's topspeed!\n:";  cin>>a_car.topspeed;  cout<<"define the car's horsepower\n:";  cin>>a_car.horsepower;  cout<<"\n\nThis is the car's data:\n";  cout<<"\nWeight:"<<a_car.weight;  cout<<"\nLength:"<<a_car.length;  cout<<"\nWidth:"<<a_car.width;  cout<<"\nTop Speed:"<<a_car.topspeed;  cout<<"\nHorse Power:"<<a_car.horsepower;  cout<<"\n";}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -