77问答网
所有问题
当前搜索:
简单c语言程序编写
如何用
C语言编写程序
,把"我爱你"循环520次?
答:
include<stdio.h> int main(){ int i=0;while(i<520){ printf("我爱你\n");i++;} return 0;} 采用while循环和printf输出函数即可。
谁有一些
简单
小游戏
的C语言程序
?
答:
可以学写“贪吃蛇”代码:include <stdio.h> include <stdlib.h> include <conio.h> include include <Windows.h> define W 78 //游戏框的宽,x轴 define H 26 //游戏框的高,y轴 int dir=3; //方向变量,初值3表示向“左”int Flag=0; //吃了食物的标志(1是0否)int score...
C语言编写程序
题,求大神
答:
最
简单
明了的
程序
如下:include<stdio.h>main(){double x,y,max,min;min=max=0;for(x=0;x<=2;x+=0.2){y=2*x*x*x-3*x*x*x*x+6*x*x*x*x*x-4*x-50;printf("当x=%f时,y=%f\n",x,y);if(y>max) max=y;if(y<min) min=y;}printf("最大值是%f\n",max);...
如何用
C语言编写
一个
程序
???
答:
include"stdio.h"include"string.h"include<iostream.h> typedef struct { char name[32];char tel[16];} contact;contact list[100];int main(){ char name[32];strcpy(list[0].name,"keefo");strcpy(list[0].tel,"1234567");strcpy(list[1].name,"keefo1");strcpy(list[1].tel,"...
用
c语言编写
一个
程序
。
答:
“该单词的后面紧跟着再次出现自己本身”怎么理解?大体说说思路,你得有个算法判断什么样的字符串算一个“单词”,可根据ASCII码,单词中可以有大小写字母,空格(\r,\t,\n),其他字符(&、*、……)都可以分隔单词。输入一个字符串,
程序
算法切割为“单词”,存入链表或者数据库,再读入之后查询...
用
C语言编写
一个猜字母的
程序
答:
void judge(char
c
,char p){ char str[100];char cp = (p - c )/2 - 1 + c ;while(1){ if(p == c || p - c == 1){ printf("答案是 :%c\n",c);return;} printf("%c:",cp);gets(str);if(strcmp(str,"B") == 0)return;if(strcmp(str,stry) == 0){ p ...
c语言程序
设计实例
答:
int
c
;printf("1.Enter a name\n");printf("2.Delete a name\n");printf("3.List the file\n");printf("4.Save the file\n");printf("5.Load the file\n");printf("6.Quit\n");do{ printf("\nEnter your choice:");gets(s);c=atoi(s);}while(c<0||c>6);return c;}...
C语言简单
冒泡法
程序
答:
1、打开Visual stdio软件,在空项目里新建一个
c语言程序
空文件:2、弹出的窗口选择C++文件,将文件扩展名改为“.c”点击添加完成新建c文件,之后就可以
编写程序
了:3、这里从数组头部开始,不断比较相邻的两个元素的大小,让较大的元素逐渐往后移动(交换两个元素的值),直到数组的末尾,经过一轮的...
用
C语言编写
一个
简单
的打字母游戏,给出基本思路及完整
程序
。
答:
用
C语言编写
一个
简单
的打字母游戏,给出基本思路及完整
程序
。 本人学C才两个多月,尽量写详细点。... 本人学C才两个多月,尽量写详细点。 展开 我来答 答题抽奖 首次认真答题后 即可获得3次抽奖机会,100%中奖。 更多问题 分享 微信扫一扫 新浪微博 QQ空间 举报 浏览2741 次 ...
C语言编写
一个
程序
,急用!!高分悬赏(正确答案追加分数)
答:
include <stdio.h> include <stdlib.h> include <conio.h> include void Menu();void Plus();void Minus();void Multiply();void Dir();int main(){ int n, flag = 0;while(1){ Menu();do { flag = 0;scanf("%d", &n);switch(n){ case 1: Plus(); break;case 2: Min...
棣栭〉
<涓婁竴椤
5
6
7
8
10
11
12
9
13
14
涓嬩竴椤
灏鹃〉
其他人还搜