c++
balabalaflower
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
example11.4.cpp
#includeusing namespace std;int main(){ struct lover{ int num; char name[10]; int age; }beauty[2]={{1,"lily",22},{2,"chengfang",21}}; struct lo原创 2014-09-07 09:21:29 · 260 阅读 · 0 评论 -
example13.5f.cpp fopen fclose
#includeusing namespace std;struct student_type{ char name[10]; int num; int age; char sex; }stud[2]={{"zhang",1001,23,'m'},{"wang",1002,22,'f'}};原创 2014-09-07 09:25:26 · 320 阅读 · 0 评论 -
example13.5.cpp fseek fread
#includeusing namespace std;struct student_type{ char name[10]; int num; int age; char sex; }stud[10];int main(){ int i; FILE *fp;原创 2014-09-07 09:27:15 · 312 阅读 · 0 评论 -
scanf输入数据.cpp
#include using namespace std;int main(){ int a,b; float c,d;char e,f; scanf("a=%d,b=%d",&a,&b); scanf("c=%f,d=%e",&c,&d); scanf("e=%c,f=%c",&e,&f); system("pause"); return(0);原创 2014-09-07 09:28:17 · 774 阅读 · 0 评论 -
example11.3.cpp 指针变量指向结构体变量
#includeusing namespace std;int main(){ struct lover{ int num; char name[10]; int age; }beauty={001,"lily",22};strcpy(beauty.name,"chenfang");st原创 2014-09-07 09:21:38 · 317 阅读 · 0 评论 -
example11.7.cpp 简单链表 dev-c++操作一直无法运行
#include#include#include#define NULL 0using namespace std;struct student{ int num; //char name[10]; int score; struct student * next; };int main(){原创 2014-09-07 09:32:37 · 520 阅读 · 0 评论
分享