文章列表
问题 1009: C语言程序设计教程(第三版)课后习题5.7
摘要:#include<cstdio>#include<iostream>using namespace std;int main(){ int a[5]; int i,n,count=0; ci……
问题 1008: C语言程序设计教程(第三版)课后习题5.6
摘要:#include<stdio.h>int main(){int score,i; scanf("%d",&score);i= score/10; switch( i ){ c……
问题 1007: C语言程序设计教程(第三版)课后习题5.5
摘要:#include<stdio.h>int main(){ int x,y; scanf("%d",&x); if(x<1) y=x; else if(x>=1&&x<10) y=2*x-1; else……
问题 1006: C语言程序设计教程(第三版)课后习题5.4
摘要:#include<cstdio> #include<algorithm> using namespace std; int main() { int i,a[10]; for(i=0;i<3;i+……
问题 1005: C语言程序设计教程(第三版)课后习题4.9
摘要:#include<stdio.h>int main(){ float c,f; scanf("%f",&f); c=5*(f-32)/9; printf("c=%.2f",c); return 0;}……
问题 1000: 简单的a+b
摘要:#include<stdio.h>
int main()
{
int a,b,c;
while(scanf("%d %d",&a,&b)==2)
{
c=a+b;
……
问题 1046: C语言程序设计教程(第三版)课后习题10.4
摘要:#include<iostream>
using namespace std;
int main()
{
int *a=new int[1000];
int m,n;
……
如何理解typedef?
摘要:typedef用法:1、用typedef为现有类型创建别名,定义易于记忆的类型名2、typedef 还可以掩饰复合类型,如指针和数组。例如,你不用像下面这样重复定义有 81 个字符元素的数组: ……
关于1019题的看法。
摘要:下面给出我的代码;#include <stdio.h>#include <math.h>void main(){ double h,sum=0; int M,N; scanf("%d %d",&M,&……