摘要:
!!! 阅读全文
posted @ 2019-10-30 14:04
Tomorrow1126
阅读(82)
评论(0)
推荐(0)
摘要:
1、数组 int p[1000]; p=new int[1000]; 或者 p=(int*)malloc(1000*sizeof(int)); 阅读全文
posted @ 2019-10-30 12:58
Tomorrow1126
阅读(96)
评论(0)
推荐(0)
摘要:
?? 阅读全文
posted @ 2019-10-30 08:31
Tomorrow1126
阅读(115)
评论(0)
推荐(0)
摘要:
描述 编写算法,实现下面函数的功能。函数void insert(char*s,char*t,int pos)将字符串t插入到字符串s中,插入位置为pos(插在第pos个字符前)。假设分配给字符串s的空间足够让字符串t插入。(说明:不得使用任何库函数) 输入 多组数据,每组数据有三行,第一行为插入的位 阅读全文
posted @ 2019-10-30 07:57
Tomorrow1126
阅读(1106)
评论(0)
推荐(0)
摘要:
1. 算术表达式: #include <iostream> int main() { int arr[4]; std::cout << sizeof( arr ) / sizeof( arr[0] ) << std::endl; // 输出4 } #include <iostream> int ma 阅读全文
posted @ 2019-10-30 00:23
Tomorrow1126
阅读(680)
评论(0)
推荐(0)
摘要:
1、char 类型的,求ASCII码 char a; int s; s=a; s就是a的ASCII码 2、char a=s; a就是A 3、char a; int s; s=int(a); 阅读全文
posted @ 2019-10-30 00:22
Tomorrow1126
阅读(106)
评论(0)
推荐(0)
摘要:
ASCII 码使用指定的7 位或8 位二进制数组合来表示128 或256 种可能的字符。标准ASCII 码也叫基础ASCII码,使用7 位二进制数(剩下的1位二进制为0)来表示所有的大写和小写字母,数字0 到9、标点符号,以及在美式英语中使用的特殊控制字符其中: 0~31及127(共33个)是控制字 阅读全文
posted @ 2019-10-30 00:20
Tomorrow1126
阅读(343)
评论(0)
推荐(0)