题解列表

筛选

三角形的面积

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){    double x1,y1,x2,y2,x3,y3,s,a,b,c,z;  ……

循环嵌套练习:输出九九乘法表

摘要:解题思路:本题运用了多重嵌套,用for循环来完成,外层循环完成一次时,内层循环完成一轮注意事项:①题目要求,注意宽度为2,并且左对齐,用-2表示,且每个表达式之间有一个空格,在printf中再敲一个空……

[编程入门]三个数最大值

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){    int a[3],i,max;    for(i=0;i<3;i+……

A+B for Input-Output Practice (I)

摘要:解题思路:EOF表示为文件结束符注意事项:参考代码:#include<stdio.h>int main(){    int a,b;    while (scanf("%d %d",&a,&b)!=E……

自己写的c++最暴力版

摘要:参考代码:#include<iostream>#include<string>using namespace std;int n;int main(){ cin>>n; int a=65; strin……

密码破译(chr()和ord()函数的应用)

摘要:解题思路:先将输入的i转化为ascll值后加4,再转化为字母注意事项:chr()函数:将ascll码转化为字符              ord()函数:将字符转化为ascll码简单代码:inp=in……

利用结构体排序

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; typedef struct a{ char m[20]; int ……