题解列表

筛选

c语言函数的链式调用-实例

摘要:解题思路:注意事项:参考代码:‘#include <stdio.h> #pragma warning(disable : 4996 int gcd(int x, int y) {     if……

成绩排序c语言

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h> struct student{    char name[200];    int age; ……

二级C语言-计算素数和

摘要:解题思路: 本题主要是解决自定义的函数问题。第一:输入范围m,nscanf("%d%d",&m,&n);第二:利用for循环,从m到n依次检查是否为素数;第三自定义一个函数(关键)    if(x<=……

链表合并(c语言)

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>typedef struct Stu{    int id;    int score;    ……

python, 很简单

摘要:解题思路:注意事项:参考代码:print(&#39;**************************&#39;)print(&#39;Hello World!&#39;)print(&#39;**……

余数相同问题

摘要:解题思路:注意事项:参考代码#include <stdio.h>int main() {    int x=2;    int a,b,c;    scanf("%d%d%d",&a,&b,&c); ……

二维数组的转置

解题思路:可单数组,即交换数字,在交换时注意不要重复。也可两个数组,将输入数组赋值(行列交换后)给输出数组。我使用第一种。注意事项:在行下标列下标相等时,在往后交换会出现重复交换。参考代码:#includevoidzd(inta[4][4]){inti,

sizeof的大作用

解题思路:char在Java中占2个字节,但在这题中设定的是一个字节注意事项:参考代码:publicclassMain{publicstaticvoidmain(String[]args){//TODOAuto-generatedmethodstubSystem.out.println(Integer

java循环入门练习

解题思路:注意事项:参考代码:importjava.util.Scanner;publicclassMain{publicstaticvoidmain(String[]args){//TODOAuto-generatedmethodstubScannerscanner=newScanner(Syste