- 博客(10)
- 收藏
- 关注
转载 伪随机数
#include<stdio.h>#include <stdlib.h>#include <time.h>int main(){ int seed = time(NULL);//给予种子 printf("seed: %d\n", seed); srand(seed); for (int i = 0; i < 10; i++) printf("%
2017-07-11 16:20:41 343 1
转载 分割句子
#include<stdio.h>int split(char text[], char* parts[]){ int count = 0; // 分段的个数 int start = 0; // 每一分段的首地址 int flag = 0; // 遍历text,标识当前是否处于有效字符 int stop = 0; // 是否到达结束 for(int i=
2017-07-11 15:45:24 2327
转载 13.3 链表-按顺序插入和查找删除节点
13.3 链表-按顺序插入和查找删除节点#include <stdio.h>#include <string.h>#include <stdlib.h>struct Student{ int id; char name[16]; Student* next;};// 定义了一个有头节点Student m_head = {0};// 按顺序插入节点int inse
2017-07-09 19:18:02 331
转载 13.1链表遍历
#include <stdio.h>#include <string.h>struct Student{ int id; char name[16]; Student* next;};Student ss[4]={ { 1, "xxs",0 }, { 2, "xxx",0 }, { 3, "xxy",0 }, { 4, "xxz",0
2017-07-07 15:03:11 251
转载 动态内存分配
#include <string.h>#include <stdio.h>#include <stdlib.h>struct Car{ char maker[32]; int price;};struct Citizen{ char name[32]; int deposite;//存款 Car* car; //NULL时无车};void
2017-07-06 20:59:40 261
转载 欢迎使用CSDN-markdown编辑器
快捷键加粗 Ctrl + B 斜体 Ctrl + I 引用 Ctrl + Q插入链接 Ctrl + L插入代码 Ctrl + K插入图片 Ctrl + G提升标题 Ctrl + H有序列表 Ctrl + O无序列表 Ctrl + U横线 Ctrl + R撤销 Ctrl + Z重做 Ctrl + YMar
2017-06-22 16:38:21 171
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人