咕噜咕噜哈里  

2021年7月17日

摘要: 还是运用ASCLL码表的一天,字符间的运算,最后无法将数字转成字母,就向覃猜猜同学请教了一下,将cout换成printf语句,尝试用过(char s;a=65;s=a)这样的,但是很是繁琐。 1 #include<iostream> 2 #include<string> 3 using namesp 阅读全文
posted @ 2021-07-17 17:28 咕噜咕噜哈里 阅读(75) 评论(0) 推荐(0) 编辑
 
摘要: 1 #include<iostream> 2 #include<string> 3 using namespace std; 4 5 int main(){ 6 int n,m; 7 cin >> n >> m; 8 9 for(int i = 0;i < n && i < 26; i++){ 10 阅读全文
posted @ 2021-07-17 17:05 咕噜咕噜哈里 阅读(40) 评论(0) 推荐(0) 编辑
 
摘要: 试了好几种方法,ASCLL码表,遍历比较 1 #include<iostream> 2 #include<string> 3 using namespace std; 4 5 int main(){ 6 char temp; 7 int sum1=0; 8 int sum2=0; 9 10 for( 阅读全文
posted @ 2021-07-17 10:21 咕噜咕噜哈里 阅读(30) 评论(0) 推荐(0) 编辑