题解列表
C语言程序设计教程(第三版)课后习题8.1 (C语言代码)
摘要:为什么不行???参考代码:#include <iostream>using namespace std;int gcd(int x , int y){ if(!y)return x; re……
C语言程序设计教程(第三版)课后习题8.4 (Java代码)
摘要:解题思路:注意事项:参考代码:import java.util.*;public class Main1030 { public static void main(String[] args) { ……
C语言程序设计教程(第三版)课后习题8.6 (C语言代码)
摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>#include <string.h>void f(char s[],char b[]){ i……
C语言程序设计教程(第三版)课后习题8.8 (C语言代码)
摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>#include <string.h>int main(){ char s[80]; i……
蛇行矩阵 (C语言代码)
摘要:#include <stdio.h>
int main(void)
{
int n, i, j, k, s, m;
while (scanf("%d", &n) != EOF)
{
……
WU-字符逆序 (C语言代码)
摘要:参考代码:#include<stdio.h>
#include<string.h>
int main()
{
char str[100];
int i;
gets(str);
f……
C语言程序设计教程(第三版)课后习题7.1 (C语言代码)
摘要:解题思路:首先我们需要知道什么叫素数,1,素数:指除了1和本身能整出的数就叫素数。注意事项:b每次循环需要归0一次;因为除0外任何数都能被1整除,所以我们直接跳过1;定i j 的值为2;参考代码#in……
C语言程序设计教程(第三版)课后习题6.2 (C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i = 0; int num1=0, num2=0, num3=0, num4=0; char str;……
字符串输入输出函数 (C++代码)
摘要:#include<iostream>
using namespace std;
int main(){
string a;
string b;
while(cin>>……