77问答网
所有问题
当前搜索:
c编程代码大全
5皇后问题
c
语言
编程代码
答:
include <stdio.h> int N,ans,High; void DFS(int Col,int Fir,int Sec) { if(Col == High){ans++;return;}//所有的列都已经被标记了,说明每一列都放了 int CanPut = ((~(Col | Fir | Sec)) & High); while(CanPut) { int LowBit = CanPut & (-CanPu...
C
语言简单四则混合运算
代码
答:
四则混合运算
代码
:include<stdio.h> include<ctype.h> include<stdlib.h> char token[61]; /*存放表达式字符串的数组*/ int n=0;void error(void) /*报告错误函数*/ { printf("ERROR!\n");exit(1);} void match(char expected) /*检查字符匹配的函数*/ { if(token[n]==expected)toke...
C
语言
编程
题目三道
答:
include<stdio.h>void cal(int n1,int n2,char f);int main(){ int n1,n2; char f; printf("分别输入两个小于100整数及一个运算符号:\n"); scanf("%d%d",&n1,&n2); getchar(); scanf("%c",&f); cal(n1,n2,f); return 0;}void cal(int n1,int ...
...和数据结构中的无向图存储结构编一个校园导游图完全的程序
代码
...
答:
求用
C
语言和数据结构中的无向图存储结构编一个校园导游图完全的程序
代码
? 要完全用C语言
编程
的,各位编程高手帮忙啊!!非常感谢... 要完全用C语言编程的,各位编程高手帮忙啊!!非常感谢... 展开 我来答 1个回答 #热议# 网文质量是不是下降了?哈哈哈好的哈哈哈哈哈哈哈哈哈哈哈哈好哈哈 2010-01-03 ...
密码锁
c
语言
编程代码
答:
include <stdio.h>#include <string.h>#include <stdlib.h>int main(){char password[10],password2[10];memset(password,0,sizeof(password));memset(password2,0,sizeof(password2));printf("请设置8位数以内密码:\n\n");scanf("%s",password);printf("请设置校验密码:\n\n");scanf("...
c
语言程序学生成绩管理系统
源代码
答:
2014-05-22
c
语言学生信息管理系统
代码
448 2011-02-27
C
语言
程序设计
学生成绩管理系统 83 2008-06-24 学生成绩管理系统(c语言程序设计) 1 2009-07-21 用C语言写个学生成绩管理系统程序 2019-03-28 c语言程序编码 学生成绩管理系统 2014-07-21 用C语言
编写程序
,学生成绩管理系统,急。 更多类似问题...
求
c
语言的贪吃蛇的
代码
能运行的
答:
// ConsoleApplication1.cpp: 定义控制台应用程序的入口点。//#include "stdafx.h"#include <stdio.h>#include <windows.h>#include #include <conio.h>#define frame_height 20 //define map size#define frame_width 40#define UP 'w' //define operate key#define DOWN 's'#define LEFT...
C
语言
编程
,任意输入一个五位正整数,逆序输出每一位上的数 如输入54321...
答:
include <stdio.h>int res[5] = {}; //外部变量 , 把每一位作为数组元素进行存储int *p = res;int main(){ int num = 12345; void ser(int);//分别输出每一位数字 ser(num); printf("\n"); p = res + 4; //指针置于数组末尾 for(int i=0; i<size...
c
语言 心形图案
代码
答:
include <stdio.h>int main() { for (float y = 1.5f; y > -1.5f; y -= 0.1f) { for (float x = -1.5f; x < 1.5f; x += 0.05f) { float a = x * x + y * y - 1; putchar(a * a * a - x * x * y * y * y <= 0.0f ? '*' : ...
利用日期、经纬度求日出日落时间
C
语言程序
代码
答:
30,31}; long double h=-0.833; //定义全局变量 void input_date(int
c
[]){ int i; cout<<"Enter the date (form: 2009 03 10):"<<endl; for(i=0;i<3;i++){ cin>>c[i]; } } //输入日期 void input_glat(int c[]...
棣栭〉
<涓婁竴椤
2
3
4
5
6
7
8
9
10
11
涓嬩竴椤
灏鹃〉
其他人还搜