study of C
irobot7
这个作者很懒,什么都没留下…
展开
-
fscanf word by word
char word[30]; FILE *f = fopen("E:\\c.txt","r"); while(fscanf(f,"%s",word)==1){ puts(word); addWord(&tree, word); }for other methods of sscanf, to be continued.原创 2016-12-05 22:37:38 · 169 阅读 · 0 评论 -
one way of bitwise operation of C using struct
#include struct pattern{ unsigned int status :1;}patterns[32]={{0}};void set_busy(struct pattern *ps,int i);void set_idle(struct pattern *ps,int i);int count_busy(struct patter原创 2017-01-20 04:05:57 · 113 阅读 · 0 评论 -
Troubleshooting Segmentation Violations/Faults
http://web.mit.edu/10.001/Web/Tips/tips_on_segmentation.htmlTroubleshooting Segmentation Violations/Faults A common run-time error for C programs by beginners is a "segmentation violation" o转载 2017-01-20 04:06:46 · 205 阅读 · 0 评论