C语言程序设计教程(第三版)课后习题7.3 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[3][3]; int i,j,s=0,sum=0;//输入 for(i=0;i<3…… 题解列表 2017年10月24日 0 点赞 0 评论 942 浏览 评分:0.0
良心推荐——>题解1049:C语言程序设计教程(第三版)课后习题11.1 (C语言描述——简单明了,时间复杂度低) 摘要:解题思路:1.首先按照题目要求定义一个结构体,如代码所示,Days为结构体类型,在main函数中定义的dd就是结构体变量名,它包含三个属性int year,int mon和int day;2.因为每个…… 题解列表 2017年10月24日 2 点赞 0 评论 1576 浏览 评分:9.1
C语言程序设计教程(第三版)课后习题3.7 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include "stdio.h"void main(){char c1='C',c2='h',c3='i',c4=&#…… 题解列表 2017年10月24日 0 点赞 0 评论 741 浏览 评分:0.0
简单的a+b (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void main(){float a,b,sum;printf("please printf two numbers:");scanf…… 题解列表 2017年10月24日 0 点赞 0 评论 739 浏览 评分:0.0
矩阵的对角线之和 (C语言代码) 摘要:解题思路:在代码那里,有详细注释注意事项:注意副对角线的规律参考代码:#include<stdio.h>int main(){ int i,j,a[5][5]; int sum=0,s=0…… 题解列表 2017年10月24日 0 点赞 0 评论 1767 浏览 评分:6.2
敲七 (C++代码) 摘要:#include<iostream> #include<vector> using namespace std; bool pandun(int m)//判断m里是否有7 { whil…… 题解列表 2017年10月24日 0 点赞 0 评论 1330 浏览 评分:8.7
C语言程序设计教程(第三版)课后习题6.1 (C语言代码) 摘要:解题思路:我这运行出来结果是对的,我是来求助的。。请问大神哪里错了呢?是不是要按规定的变量名命名?注意事项:参考代码:#include<stdio.h>int main(){ int a,b,i…… 题解列表 2017年10月25日 0 点赞 0 评论 763 浏览 评分:0.0
简单的事情 (C语言代码) 摘要:#include <stdio.h> int main() { int n,m,i; while (scanf("%d%d",&n,&m)!=EOF) { int sum=1; …… 题解列表 2017年10月25日 0 点赞 0 评论 995 浏览 评分:0.0
敲七 (C语言代码) 摘要:#include <stdio.h> int main() { int i,num,count=0,o; scanf("%d",&num); for (i=1;i<=num;i++) …… 题解列表 2017年10月25日 8 点赞 4 评论 2867 浏览 评分:9.0
找出最长的字符串来 (C语言代码) 摘要:解题思路:输出最长的用strlen()函数算出长度。一个个比较。注意事项:c语言中,没有字符串类型,用字符数组处理字符串。参考代码:#include<stdio.h>#include<string.h…… 题解列表 2017年10月25日 2 点赞 0 评论 2215 浏览 评分:7.3