题解列表
C语言程序设计教程(第三版)课后习题8.1 (C语言代码)
摘要:解题思路:注意事项:参考代码:/*
最大公约数与最小公倍数
*/
#include<stdio.h>
int get_gys(int a,int b)
{
int i;
……
数列排序 (C语言代码)
摘要:#include <stdio.h>
int main()
{
int n,nums[9],i,o;
scanf("%d",&n);
for (i=1;i<=n;i++)
{
……
C语言训练-8除不尽的数 (C语言代码)
摘要:#include<stdio.h>
int main()
{
int x = 0;
while(1)
{
if (x%8==1 && x/8%8……
C语言程序设计教程(第三版)课后习题7.5 (C语言代码)
摘要:解题思路:注意事项:参考代码:/*
逆序输出
*/
#include<stdio.h>
#define N 10
void func(int arr[])
{
int i;
……
C语言程序设计教程(第三版)课后习题7.4 (C语言代码)
摘要:解题思路:注意事项:参考代码:/*
插入有序数组
*/
#include<stdio.h>
void ins(int *arr,int k)
{
int i,j;
for……
C语言程序设计教程(第三版)课后习题7.3 (C语言代码)
摘要:解题思路:一步到位注意事项:=-=||!参考代码:/*
主对角线 副对角线 元素和
*/
#include<stdio.h>
#define N 3
void func(int arr[]……
C语言程序设计教程(第三版)课后习题7.2 (C语言代码)
摘要:解题思路:感觉这样模块化会好一些~注意事项:注意指针的使用参考代码:/*
选择排序
*/
#include<stdio.h>
void swap(int *a,int *b);
void s……
C二级辅导-统计字符 (C语言代码)
摘要:解题思路:这是没错的可以他说有问题注意事项:参考代码:#include"stdio.h"#include"string.h"int main(){ char string[20]; int i……
C语言程序设计教程(第三版)课后习题11.3 (C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>typedef struct student{ char id[50]; char name[50]; int ……