循环找公因数和公倍数 摘要:解题思路:inline 为内联函数注意事项:参考代码:#include<iostream>using namespace std;inline int find_max(int a,int b){ …… 题解列表 2023年12月26日 0 点赞 0 评论 596 浏览 评分:0.0
密码(没法偷懒了,大写字母可以用isupper函数,小写字母可以用islower函数,数字可以用isdigit函数,特殊符号没法用ispunct函数) 摘要:解题思路:ispunct()检查给定字符是否是当前C语言环境中的标点符号默认的C语言环境的字符!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~分类为标点符号明显比题目要求得多了…… 题解列表 2023年12月26日 0 点赞 0 评论 569 浏览 评分:0.0
转置嘛,就是互换行列呗 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int arr[3][3]; int *p = &arr[…… 题解列表 2023年12月26日 0 点赞 0 评论 499 浏览 评分:0.0
利用指针解决字符数组 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){ string str; g…… 题解列表 2023年12月26日 0 点赞 0 评论 492 浏览 评分:0.0
混子代码你值得拥有! 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ char arr[4] = {0}; for(int i …… 题解列表 2023年12月26日 0 点赞 0 评论 477 浏览 评分:0.0
指针遍历,分类记录 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){ string str; g…… 题解列表 2023年12月26日 0 点赞 0 评论 455 浏览 评分:0.0
结构体之成绩记录(java类) 摘要:多的不说,直接上代码import java.util.Scanner; class Grade{ int oneSub; int twoSub; int thre…… 题解列表 2023年12月27日 0 点赞 0 评论 504 浏览 评分:0.0
题解 2848: 基因相关性 #includeusingnamespacestd;inte;doublec,z;chara[510],b[510];intmain(){cin>>c;cin>>a>>b;intq=strlen(a);z=q*c;for(inti=1;i=z){cout 题解列表 2023年12月27日 0 点赞 0 评论 483 浏览 评分:0.0
题解 2876: 矩阵交换行 #includeusingnamespacestd;intn,m;inta[6][6];intmain(){for(inti=1;ia[i][j];}}cin>>n>>m;for(inti=1;i 题解列表 2023年12月27日 0 点赞 0 评论 526 浏览 评分:0.0
题解 2851: 合法C标识符 #includeusingnamespacestd;intn;chara[200],m[200];intmain(){cin>>a;intq=strlen(a);if(a[0]>='0'&&a[1] 题解列表 2023年12月27日 0 点赞 0 评论 524 浏览 评分:0.0