摘要: #include "stdafx.h" int main(){ srand(time(NULL)); initgraph(640,480); int user_x=20,user_y=400,block_x=0,block_y=0; block_y=rand()%100; char ch; int 阅读全文
posted @ 2021-08-25 14:46 计算机知识杂谈 阅读(126) 评论(0) 推荐(0) 编辑
摘要: (下面一段来源《征服C指针》) 75: ReadLineStatus read_line(FILE *fp, char **line) 76: { 77: int ch; 78: ReadLineStatus status = READ_LINE_SUCCESS; 79: 80: st_curren 阅读全文
posted @ 2021-08-25 09:58 计算机知识杂谈 阅读(145) 评论(0) 推荐(0) 编辑
摘要: easyx是一个针对VC++编译器的图形化插件。使用它,可以使得在C++中编写图形程序。 小球移动代码: #include"stdafx.h" #include<graphics.h> #include<conio.h> #include<stdlib.h> #include<time.h> int 阅读全文
posted @ 2021-08-25 09:00 计算机知识杂谈 阅读(601) 评论(0) 推荐(0) 编辑