2017年1月5日
摘要: 在c++中使用时: #include <cctype> 字符判断函数 1、isalnum函数--判断是否是英文字母或数字字符,如果是,则返回非0值,如果不是,则返回0. 函数参数 :可以是字符也可以是整型数字。 用例:if( isalnum(ch) !=0 ) 在windows和linux中通用 2 阅读全文
posted @ 2017-01-05 19:00 qq77530202 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 1、 阅读全文
posted @ 2017-01-05 17:32 qq77530202 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 1、 阅读全文
posted @ 2017-01-05 17:29 qq77530202 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 1、 阅读全文
posted @ 2017-01-05 17:28 qq77530202 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 1、 阅读全文
posted @ 2017-01-05 17:27 qq77530202 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 1、 阅读全文
posted @ 2017-01-05 17:26 qq77530202 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 1、 阅读全文
posted @ 2017-01-05 17:25 qq77530202 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 1、 阅读全文
posted @ 2017-01-05 17:25 qq77530202 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 1、 阅读全文
posted @ 2017-01-05 17:24 qq77530202 阅读(88) 评论(0) 推荐(0) 编辑
摘要: C++兼容了stdio.h函数,其用法和c一样。 命令形式 #include <stdio.h>; 1、 阅读全文
posted @ 2017-01-05 17:23 qq77530202 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 1、clock函数 返回CPU计时单元。函数返回开启这个程序进程到程序中调用clock函数时之间的CPU时钟计时单元(返回毫秒)。 (计的是占用cpu的时间) 函数原型:long clock(); 函数参数:无参数 关联:CLOCKS_PER_SEC 在time.h中有宏定义 表示1秒钟有1000个 阅读全文
posted @ 2017-01-05 17:22 qq77530202 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 三角函数 1、cos 函数 求x的余弦值,返回弧度x的余弦值。(弧度=角度×PI/180)、 函数原型 double cos(double x); 函数参数:弧度值 用例:v = cos (x); 2、sin 函数 求x的正弦值,返回弧度x的正弦值。(弧度=角度×PI/180)、 函数原型 doub 阅读全文
posted @ 2017-01-05 17:21 qq77530202 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 1、 阅读全文
posted @ 2017-01-05 17:19 qq77530202 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 1、 阅读全文
posted @ 2017-01-05 17:19 qq77530202 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 1、输入 十六进制 cin>>hex>>x>>dec>>y dec 是十进制 oct 是八进制 输出 十六进制 cout<<hex<<x<<dec<<y 2、 stdio.h 在c++中 变为 cstdio 3、 Seq 十进 十六进 缩写 字符名 00 0x00 NUL Null (空) ^A 0 阅读全文
posted @ 2017-01-05 17:16 qq77530202 阅读(148) 评论(0) 推荐(0) 编辑
摘要: # include<iostream> //头文件的使用using namespace std; //命名空间的使用int main(){ int a,b; cin>>a>>b; //输入 cout<<b<<a<<endl; //输出 与 换行 return 0;} 1、C++ 可以直接比较两个字符 阅读全文
posted @ 2017-01-05 00:45 qq77530202 阅读(104) 评论(0) 推荐(0) 编辑