C++ 一定会经历的常见错误
C++ 一定会经历的常见错误
C++ 一定会经历的常见错误
C++中需要掌握的只有int(整型)float (浮点)char (字符),其他的可自行百度后学习,但是基本上用不到 int float char 这三种类型,换成说人话的解释就是: ...
什么是类和对象?张三找了一个女朋友,她的女朋友就是他的对象。搞笑一下,打个比方,我们都是人类,人类这个类的一个成员(对象)。怎么创建类呢?#include <iostream> using namespace std; class fenshu...
#include <iostream> using namespace std; class fenshu { public: int xuehao; int yuwen; }; ...
#include<iostream> using namespace std; int main() { int x=0; for(x=0;x<10;x++) { if(x==3) break;...
#include<iostream> using namespace std; struct books{ char name[10]; int num; float price; }book; int&nb...
#include<iostream> using namespace std; void addarr(int *k,int len); //文中形如sizeof(x)/sizeof(x[0]) 是用数组占用空...