ゞ .miracle_千年小虫
退化 | 进化.

导航

 

2018年6月15日

摘要: C++ I/O 1、Constructors:构造器 Fstream(const char *filename, openmode mode); Ifstream(const char *filename, openmode mode); Ofstream(const char *filename, 阅读全文
posted @ 2018-06-15 10:51 miracle_sl 阅读(131) 评论(0) 推荐(0)
 

2018年6月14日

摘要: 标准C内存函数 1、calloc():分配一个二维储存空间 #include <stdlib.h> Void calloc(size_t num, size_t size); 2、Free():释放已分配空间 #include <stdlib.h> Void free(void *ptr); 3、M 阅读全文
posted @ 2018-06-14 15:11 miracle_sl 阅读(144) 评论(0) 推荐(0)
 
摘要: 标准C时间和日期函数 1、asctime():时间文本格式 #include <time.h> Char *asctime(const struct tm *ptr); 2、Clock():返回自程序开始运行所经过的时间 #include <time.h> Clock_t clock(void); 阅读全文
posted @ 2018-06-14 10:57 miracle_sl 阅读(184) 评论(0) 推荐(0)
 
摘要: 标准C Math函数 1、abs():求绝对值 #include <stdlib.h> int abs(int num); 2、acos():求反余弦 #include <math.h> double acos(double arg); 3、asin():求反正弦 #include <math.h> 阅读全文
posted @ 2018-06-14 10:34 miracle_sl 阅读(464) 评论(0) 推荐(0)
 

2018年6月13日

摘要: 1、atof():将字符串转换成浮点数 #include <stdlib.h> double atof(const char *str); 2、atoi():将字符串转换成整数 #include <stdlib.h> int atoi(const char *str); 3、atol():将字符串转 阅读全文
posted @ 2018-06-13 14:08 miracle_sl 阅读(318) 评论(0) 推荐(0)
 

2018年6月11日

摘要: 1、clearerr():清除错误 语法: #include <stdio.h> void clearerr(FILE *file); 2、fclose():关闭一个文件 语法: #include <stdio.h> int fclose(FILE *file); 3、feof():如果到达文件尾e 阅读全文
posted @ 2018-06-11 10:11 miracle_sl 阅读(394) 评论(0) 推荐(0)
 
摘要: C++关键字: 1、asm:允许在代码中直接插入汇编语言指令。 2、auto:用来声明完全可选择的局部变量。 3、bool:用来声明布尔逻辑变量。 4、break:用来跳出一个do、for、while循环,也可以 结束一个switch语句的句子 5、case:在switch里面用来检测匹配。 6、c 阅读全文
posted @ 2018-06-11 10:04 miracle_sl 阅读(2109) 评论(0) 推荐(0)
 
摘要: C\C++标准库函数 预处理命令: 1、#、## #和##操作符是和#define宏使用, 使用#使跟在#后的首个参数返回为一个带双引号的字符串, 使用##连接##前后的内容。 2、#define 该命令用于把指定的字符串替换文件中的宏名称, 另一个功能是替换参数,是它假冒创建函数一样使用。 3、# 阅读全文
posted @ 2018-06-11 09:57 miracle_sl 阅读(386) 评论(0) 推荐(0)
 

2018年6月1日

摘要: Eclipse常用快捷键(转自博客园) 1几个最重要的快捷键 代码助手:Ctrl+Space(简体中文操作系统是Alt+/)快速修正:Ctrl+1单词补全:Alt+/打开外部Java文档:Shift+F2显示搜索对话框:Ctrl+H快速Outline:Ctrl+O打开资源:Ctrl+Shift+R打 阅读全文
posted @ 2018-06-01 10:48 miracle_sl 阅读(376) 评论(0) 推荐(0)