C++
皓月明
这个作者很懒,什么都没留下…
展开
-
原来C++里边只要是非零都认为是真,只有在值为0的时候才认为是假
原来C++里边只要是非零都认为是真,只有在值为0的时候才认为是假比如int a=-100那么原创 2014-07-17 10:27:22 · 8045 阅读 · 0 评论 -
C++学习笔记之struct和union(结构和共用体)
struct(结构)可以存储多种不同数据类型的数据,而array只可以原创 2014-07-27 22:48:38 · 1061 阅读 · 0 评论 -
C++中要将字符串存入数组中时不能直接赋值
在学习C++的过程中突然发现对于要往数组中原创 2014-07-29 23:25:55 · 3916 阅读 · 0 评论 -
C++动态结构练习
#include #include #include int caculateYadFromFurlong(int furlong);using namespace std;int main(void){ struct student { char name[20]; int age; }; student *stu = new student; cout <原创 2014-07-30 21:03:07 · 877 阅读 · 0 评论