摘要: 内存拷贝函数 字符串拷贝 阅读全文
posted @ 2018-11-13 22:14 cicero 阅读(704) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; // 输入一个字符串(包括英文和中文),将其反序输出, 如: // hello 今天真热 ---> 热真天今 olleh int numChar(char c) // English -> 1 C -> n C -> 0 { int n = 0; for (int i=7; i>=0; i-... 阅读全文
posted @ 2018-11-13 16:42 cicero 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 第一种方法: 第二种方法: 阅读全文
posted @ 2018-11-13 16:23 cicero 阅读(724) 评论(0) 推荐(0) 编辑
摘要: 方法一: #include <stdio.h> #include <stdlib.h> #include <string.h> void Reverse(char str[]); int main() { char str[100]; printf("Input a string:"); gets( 阅读全文
posted @ 2018-11-13 16:00 cicero 阅读(34895) 评论(0) 推荐(0) 编辑
摘要: ASCII值控制字符ASCII值控制字符ASCII值控制字符ASCII值控制字符 0 NUT 32 (space) 64 @ 96 、 1 SOH 33 ! 65 A 97 a 2 STX 34 " 66 B 98 b 3 ETX 35 # 67 C 99 c 4 EOT 36 $ 68 D 100 d 5 ENQ 37 % 69 E 101 e 6 ACK 38 &... 阅读全文
posted @ 2018-11-13 12:50 cicero 阅读(379) 评论(0) 推荐(0) 编辑