66问答网
所有问题
当前搜索:
大学期末c语言经常考的编程题
C语言编程题
急!
答:
include<stdio.h> include<string.h> include<math.h> typedef struct { char Cname[21];float Lat;float Lon;} CITY;typedef struct { int Nb_cities;CITY Cities[20];} CITIES_LIST;float **DistancesMatix = NULL;char* GetFileName(void){ static char file[20];printf("Enter the file...
考
c语言
呢 求助那位好心人帮帮我啊 在线等!我有几道
编程题
不太会
答:
include <stdio.h> int handle(int i){ if(i==1||i==0) return 1;else return i*handle(i-1);} void main(){ int i,k,sum;for(i=1;i<=10;i++){ sum+=handle(i);} printf("1!+2!+3!+4!+5!+6!+7!+8!+9!+10!=%d",sum);}
编程
第1大题 int i,j;max=b[0]...
一个
C语言的编程题目
,请高手帮忙!谢谢!
答:
/*第一题:从键盘输入任意两个正整数x和y,
编程
求出两数的最大公因子和最小公倍数 / include <stdio.h> int main(void){ unsigned int x,y,i,a,b;printf("请输入两个正整数x和y:");scanf("%d %d", &x,&y);if (x < 2 || y < 2) { printf("无效的输入\n");return 0;}...
大一
c语言
基础,
编程题目
一道
答:
include<stdio.h>#include <stdlib.h>#include int main(){ int js=0,os=0,s=0,i,x; srand(time(NULL)); for(i=0;i<10;i++) { x=rand()%89+10; s+=x; printf("%5d",x); if(x%2)js++; else os++; } printf("\nAver=%.1f\n",s/10.0); printf("Ou ...
高分求两道大一
C语言编程题
答案,答对的保证再追加100分
答:
printf("%
c
", *psz);psz++;continue;} fprintf(fp, "%c", *psz);psz++;} } int main(){ char* pszBuff = ReadFile("Old.txt");if( NULL == pszBuff ) return 0;Sort(pszBuff);free(pszBuff);printf("\n");} / 2./ include <stdio.h> include <malloc.h> void input...
C语言编程的题目
答:
//口令检查程序#include<iostream>using namespace std;void main(){char a[100];int count=0;int flag=1;cout<<"enter password:";while(cin>>a){if(strcmp(a,"8888")==0){cout<<"you are welcome!" <<endl;flag=0;break;}else{cout<<"wrong password!"<<endl;count++;if(count==...
求解
C语言编程题
!!!急,明天
考试
了= =
答:
include <stdio.h> include <conio.h> include <mem.h> //方便输入,行N定为3,列M也定为三 define N 3 define M 3 //申明二维数组 static int a[10][10];//申明函数 void sele();void input(int a[][10],int n,int m);void output(int a[][10],int n,int m);void ...
几道
C语言编程题
答:
多给些分吧,累死我了:(给,都已经编译运行确认了:1.下标法:include<conio.h> include<stdio.h> int main(){ int a[11]={0,1,2,3,4,5,6,7,8,9,10};int N;int i,j,temp;printf("Please input N: \n");scanf("%d",&N);for(i=0;i<N;i++){ temp=a[10];for(j=10...
c语言编程题
答:
你需要定义一个结构作存储歌手信息比如:typedef struct singer{ int id;//歌手编号 char name[10];//歌手姓名 。。。//什么地址啊,联系电话啊等等 int score;//歌手最终得分 struct singer *next;//链表指针,如果你是用结构数组,这个成员可以不用 };SIRn个歌手可以用结构...
急求用
c语言编程
写出这十题
答:
1,include<stdio.h>void main(){ printf("我的名字是张三.\n"); printf("我是一个男性。\n"); printf("我今年24岁了。\n"); printf("我在三年二班。\n"); }2,include<stdio.h>void main(){ int m; m=923; printf("m=%d.\n",m); }3,include<stdio.h>void main(){ ...
棣栭〉
<涓婁竴椤
2
3
4
5
6
7
8
9
10
11
涓嬩竴椤
灏鹃〉
其他人还搜