题解列表
2823: 计算分数加减表达式的值
摘要:解题思路:注意事项:参考代码:#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
int n……
循环循环+循环(C++)
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;//已有一个已正序排好的9个元素的数组,今输入一个数要求按原来排序的规律将它插入数组中。int……
2824: 求出e的值
摘要:解题思路:注意事项:参考代码:#include<iostream>
#include<iomanip>
using namespace std;
long long int jc(int n)……
循环找公因数和公倍数
摘要:解题思路:inline 为内联函数注意事项:参考代码:#include<iostream>using namespace std;inline int find_max(int a,int b){ ……
密码(没法偷懒了,大写字母可以用isupper函数,小写字母可以用islower函数,数字可以用isdigit函数,特殊符号没法用ispunct函数)
摘要:解题思路:ispunct()检查给定字符是否是当前C语言环境中的标点符号默认的C语言环境的字符!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~分类为标点符号明显比题目要求得多了……
转置嘛,就是互换行列呗
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int arr[3][3]; int *p = &arr[……
利用指针解决字符数组
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){ string str; g……
混子代码你值得拥有!
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ char arr[4] = {0}; for(int i ……