77问答网
所有问题
当前搜索:
编写一个c语言程序
编写一个c语言程序
,输出以下信息 我是一名大学生!
答:
easy...直接printf就好啦:include <stdio.h>int main(){ printf ("我是一名大学生!\n"); printf ("我喜爱
c语言
!\n"); return 0;}
用
C语言写一个小程序
!
答:
gotoxy(1,1);printf("|---|");gotoxy(1,2);printf("| money management system(
C1
.0) 2000.03 |");gotoxy(1,3);printf("|---|");gotoxy(1,4);printf("| -- money records -- | -- today cost list -- |");gotoxy(1,...
求用
C语言编写一个程序
答:
字符是指文件中的所有字符,包括回车符。运行本
程序
,程序提示输入要统计的文件名(文件应该是文本文件),然后回车执行。/ include <stdio.h> include <stdlib.h> include <conio.h> main(){ FILE *fp;char fname[80];/*存贮文件名*/ int inline,inword; /* 行内和字内标志 */ int
c
...
求这个
c语言程序
怎么
编写
答:
include<stdio.h>int count(){int i,s=0,n=0; for(i=1990;i<2010;i++) {s+=
1
+(i%4==0&&i%100||i%400==0); if(s%7==0)n++; } return n;}void out(){int i,s=0; for(i=1990;i<2010;i++) {s+=1+(i%4==0&&i%100||i%400==0); if(s%7==0)printf...
帮我
编写一个C语言
的
程序
答:
stu[i].
C
_Score,stu[i].Sport_Score,stu[i].Average);} //写入文件 if((fp=fopen("xinxi","w"))==NULL){ printf("cannot open file!\n");exit(0);} for(i=0;i<10;i++){ fwrite(&stu[i],sizeof(struct student),
1
,fp);} getchar();getchar();fclose(fp);return 0;} ...
求
编写一个c语言程序
答:
我用的是在线编译,
程序
就是这样:include<stdio.h> include<stdlib.h> define pi 3.14159265 int main(){ double r,
c
,s;scanf("%lf",&r);c = 2*pi*r;s = pi*r*r;printf("圆周长:%.2lf\n",c);printf("圆面积:%.2lf\n",s);return 0;} ...
编写一个C语言
的
程序
???
答:
using namespace std;include <string> int main(int argc, char* argv[]){ string line;getline(cin,line,'.'); // 从键盘输入一行英文语句 cout<<line<<endl;string world;for(istringstream istr(line); istr>> world;)cout<<world<<endl; //输出每个单词 } 这个
程序
在vc++上通过了...
用
C语言编写一个程序
输出3到100间的素数
答:
2013-12-16 c语言下面的
程序
输出3到100间的所有素数。 23 2011-12-26 麻烦用C语言解决下这2道题 1.编写一个程序,输出3到100... 4 2013-04-27 编写一个程序,输出3~100之间的全部素数。 7 2013-04-18 C语言求解!3. 编写一个程序,输出100到500之间的所有... 3 2013-05-14
写一个C语言
...
编写一个c语言程序
答:
1。你的 mulabc 是main函数的一个子函数吧。。只用
写一个
#include<stdin.h>就行了。。2。子函数中int n,a[],b[],c[]都是不必要的,你在void mulabc(n,a,b,c)中相当于已经声明了。。。3。你在void mulabc(n,a,b,c)应该声明各变量类型。。改成如void mulabc(int n,int *a, ...
求
编写一个C语言程序
。
答:
/ 前3名的票数:候选人 1: 14票。候选人 2: 10票。候选人 8: 8票。Press any key to continue / include <stdio.h>#define N 21 // 选举人数int isLegal(int a[3]) { // 选票合法性检查int i;for(i = 0; i < 3; ++i) {if(a[i] < 0 || a[0] > 9) // 未...
棣栭〉
<涓婁竴椤
6
7
8
9
11
12
13
14
10
15
涓嬩竴椤
灏鹃〉
其他人还搜