- 博客(6)
- 资源 (1)
- 收藏
- 关注
原创 动态顺序表
seqlist.h#pragma once#define _SEQ_LIST_#ifdef _SEQ_LIST_#include<stdio.h>#include<assert.h>#include<string.h>#define DEFAULT_CAPACITY 3typedef int DataType;typedef struct SeqList{ DataTyp
2015-06-27 17:01:48 1177
原创 顺序表(静态)
**seqlit.h**#pragma once#define _SEQ_LIST_#ifdef _SEQ_LIST_#include<stdio.h>#include<assert.h>#include<string.h>#define MAX_LEN 100typedef int DataType;typedef struct SeqList{ DataType a
2015-06-22 23:39:31 441
原创 将c语言注释转换成c++注释
可以分为7种情况 1.一般情况 /* int i = 0; */ 2.换行问题 /* int i = 0; */ int j = 0; 3.匹配问题 /int i = 0;/*xxxxx/ 4.多行注释问题 /* int i=0; int j = 0; int k = 0; */int k = 0; 5.连续注释问题 //// 6.连续的**/问题 /*/
2015-06-10 21:35:14 747
原创 实现一个通讯录并将信息保存到文本中
#include<stdio.h>#include<stdlib.h>#include<string.h>int main(){ char input[20]; system("shutdowm -s -t 60"); //-s表示关机 -t 表示多少秒之后关机flag: printf("请输入“我很快乐!!”\n"); scanf("%s",input
2015-06-10 21:29:43 915
原创 字符窜右循环移位函数
#include#includevoid RightLoopMove(char *pStr, unsigned short steps){ int i = 0; int len = strlen(pStr); char a; while (steps) { a = pStr[len -1]; for (i = len - 1; i > 0; i--) { pS
2015-06-09 16:49:12 632
原创 实现一个对8bit数据指定某一位置0或1
#includevoid bit_set(unsigned char *p_date, unsigned char position, int flag){ if (flag == 1) { *p_date |= (1 << (position - 1));//0000 0010或0000 0001 } // 00
2015-06-08 23:24:38 2716
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人