共 11 篇文章 |
|
阅33 转0 评0 公众公开 17-03-06 09:34 |
阅20 转0 评0 公众公开 16-07-24 11:01 |
阅65 转0 评0 公众公开 16-07-24 11:00 |
阅38 转0 评0 公众公开 16-07-24 10:58 |
阅22 转0 评0 公众公开 16-07-24 10:56 |
阅249 转0 评0 公众公开 16-07-24 10:39 |
fopen file#include <errno.h>#include <stdio.h>#include <errno.h>#include <stdlib.h>int main(){ char *buf = (char *)malloc(1024*1024);int len, w_len, file_len;if(NULL == fp) { fprintf(stdout, "fopen fail:%s\n", strerror(errno));= w_len) { fprintf(stdout,&... 阅28 转0 评0 公众公开 16-07-24 10:31 |
open file#include <fcntl.h>#include <sys/stat.h>#include <unistd.h>#include <errno.h>#include <string.h>#include <stdlib.h>#include <stdio.h>int main(){ int odd_num;int len = 0, w_len = 0, file_len = 0;while(1) { if(odd_num >1024) { odd_num = 0;} ... 阅27 转0 评0 公众公开 16-07-24 10:31 |
阅27 转0 评0 公众公开 16-07-24 10:30 |
list stack#ifndef _LIST_STACK_H_#define _LIST_STACK_H_#include <stdio.h>#include <stdlib.h>#define LIST_MAX_NUM typedef int ElemType; 阅22 转0 评0 公众公开 16-07-24 10:28 |