- 博客(4)
- 收藏
- 关注
原创 动态顺序表
//seqlist.h#ifndef __SEQLIST_H__#define __SEQLIST_H__#define CAPACITY 3typedef struct{ int *array; int size; int capacity;}Seqlist;typedef enum{ TRUE, FALSE,}Tag;typedef struct{ T
2015-06-25 19:18:40 464
原创 注释转换(C->C++)
#include#includevoid Annotationconvert(FILE *inFile,FILE *outFile){ char firstCh; char secondCh; int flag=1; //控制,解决input.c里的3 do { firstCh=fgetc(inFile); switch(firstCh) { case'/':
2015-06-25 13:53:29 398
原创 字符串的循环右移
#include#includevoid RightLoopMove(char *pstr,unsigned short steps){ //steps为向右移动的位数 int len; unsigned short i=0; int j=0; len=strlen(pstr); for(i=0;i<steps;i++) { char tmp=pstr[len-1];
2015-06-25 12:50:57 570
原创 对指定位进行置0或置1操作
#includevoid bit_set(unsigned char *p, unsigned char position, int flag){ if(flag==1) { //11110000 //00010000 *p|=(1<<(position-1)); } if(flag==0) { //11110000 //11101111 *p&=~(1<<(
2015-06-13 13:57:19 1010
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人