- 博客(8)
- 资源 (3)
- 问答 (2)
- 收藏
- 关注
原创 C二进制打开文件
#include #include #include #define FILE_NAME 100 #define LINE_WIDTH 80 int main() { FILE *pfile; char path[FILE_NAME] = "d:\\test.txt"; fpos_t cur = 0; pfile = fopen(path,"r
2015-08-27 14:28:52 801
转载 C 二进制读取文件
#include #include #include #define MAXLEN 256 #define DISPLAY 80 #define PAGE_LENGTH 20 int main() { char filename[MAXLEN]="d:\\备忘.txt"; FILE *pfile = NULL; unsigned char buff
2015-08-27 11:26:36 441
转载 C语言求质数
#include #include #include #define MEM_PRIMES 100 int test_prime(unsigned long long N); int check(unsigned long long buffer[],size_t count,unsigned long long N); void put_primes(void); struct {
2015-08-25 16:42:02 873
原创 C语言实现绘制柱状图
强撸出来的 #include #include #include typedef struct data { int* array; int count; }DATA; int* getLimit(int* a,int count); void drawBar(int* a,int count); DATA getData(); int main() { DA
2015-08-21 10:49:24 10521 1
转载 C黑白棋
#include #include #include #include #include #define SIZE 8 const char comp_c = 'X'; const char player_c = 'O'; void display(char board[][SIZE]); int valid_moves(char board[][SIZE],bool moves[
2015-08-13 09:46:58 1469
原创 C井字棋
#include #include int main() { char qipan[3][3] = {{' ',' ',' '},{' ',' ',' '},{' ',' ',' '}}; int step = 0; int player = 0; int pos = 0; bool win = false; int i , j;
2015-08-05 16:16:09 703
原创 C学习备忘录
1. system("pause"); 2.long long a = 0LL; 3.printf("%lld",a); 4.fflush(stdin); 5.for (; (clock()-now) 6.连接字符串 char a[40] = "this is a big "; char b[] = "game show! WO~"; int count1
2015-08-05 12:02:32 716
原创 猜数字小游戏
#include #include #include #include int main() { char input = 'y'; int limit = 2; long long getNum = 0LL; long long showNum; int i; clock_t now; int score = 0;
2015-08-05 11:44:03 451
HTMLTestRunner.py
2016-05-26
使用seek方式创建的文件,为什么默认打开编码是ANSI?
2019-05-23
xpath如何选择不包含特定子节点的节点?
2019-01-02
TA创建的收藏夹 TA关注的收藏夹
TA关注的人