题解列表
C++代码String库函数,for循环,索引
摘要:解题思路:for循环,索引注意事项:暂时不明参考代码:#include<iostream>#include<string>using namespace std;int main(){ stri……
1033: [编程入门]自定义函数之字符提取
摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int fun(char a[],char b[]){ int k=0; char ……
蓝桥杯算法提高VIP-交换Easy
摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(void){ int n, m, x, y, i, t; int N[1000]; scanf("……
C++string库,for循环,if判断元音,char数组
摘要:解题思路:string库,for循环,if判断元音,char数组注意事项:暂时不明参考代码:#include<iostream>#include<string>using namespace std;……
C++代码 for循环 求余 整除 数组保存每位数值 逆序输出
摘要:解题思路:for循环 求余 整除 数组保存每位数值 逆序输出注意事项:暂时不明参考代码:#include<iostream>using namespace std;int main(){ int……
C++代码string库函数,输入空格终止问题,采用getline
摘要:解题思路:https://www.cnblogs.com/Alan-kx/p/14320284.html读取空格终止导致for循环无法遍历全字符串问题注意事项:暂时不明参考代码:#include<io……
c语言巧妙解答(小白)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[1001]; char b[1001]; gets(a); g……
c++处理,利用do-while循环解决
摘要:解题思路:(1)先想好怎么计算出位数?利用do-while循环指令,将输入的数分别除以十,得到余数和商,判断商是否为0;不是0则继续循环; do { b[i] = a % 10; a……