字符串
文章平均质量分 51
EnochChen_
这个作者很懒,什么都没留下…
展开
-
Palindromes UVA - 401
#include <stdio.h> #include <string.h> char MirroredStr[] = {'A', ' ', ' ', ' ', '3', ' ', ' ', 'H', 'I', 'L', ' ', 'J', 'M', ' ', 'O', ' ', ' ', ' ', '2', 'T', 'U', 'V', 'W', 'X', 'Y', '5' }; char .原创 2021-11-16 19:12:20 · 335 阅读 · 0 评论 -
UVa10082:WERTYU
WERTYU - UVA 10082 - Virtual Judgehttps://vjudge.net/problem/UVA-10082两种方法,第一种紫皮书上的,第二种网上的,感觉网上的更简单 #include <iostream> using namespace std; char s[] = "`1234567890-=QWERTYUIOP[]\\ASDFGHJKL;'ZXCVBNM,./"; int main () { int i, c; while ((c = getc原创 2021-11-15 21:58:21 · 832 阅读 · 0 评论 -
关于字符串的再学习
最近想着再学习一下字符串,总结了一下小小知识点 #include <iostream> #include <algorithm> #include <cstring> using namespace std; char a[1001]; int main() { gets(a); for (int i = strlen(a) - 1; i >= 0 ; i--) { printf("%c", a[i]); } return 0; }原创 2021-11-13 09:59:58 · 302 阅读 · 0 评论