C++
文章平均质量分 81
Shuaishuai_Bi
这个作者很懒,什么都没留下…
展开
-
一些C++的小程序(一)
输出hello word#include using namespace std;int main(){ cout << "hello,word\n"; return 0;}查找int的空间大小#include using namespace std;int main(){ cout << "The size of an int is :\t原创 2017-11-27 22:31:35 · 2866 阅读 · 0 评论 -
一些C++小程序(二)
//构造一个学生的结构体#include #include #include using namespace std;struct Student { int num; string name; char sex; int age;};int main(){ Student stu = { 97001,"LinLin",'F',19 }; cout << "NUM:"原创 2017-11-27 22:39:43 · 758 阅读 · 2 评论 -
在数据结构中的代码学习之——链表
线性表中的单链表typedef struct LNode{Elemtype data;struct LNode *next;}LNode,*Linklist;双链表typedef struct DLNode{Elemtype data;struct DLNode *next;struct DLNode *prior;}DLNode;假设有n个元素已经存在数组a中,用尾插法建立链表C尾...原创 2018-06-12 12:42:58 · 207 阅读 · 0 评论