搜索结果
找到约 37 项符合
scanf 的查询结果
按分类筛选
VC书籍 函数分库函数和用户自定义函数两类: 库函数(又称系统函数)是高级语言软家中提供基础功能的函数。库函数文件以h为文件后缀
函数分库函数和用户自定义函数两类:
库函数(又称系统函数)是高级语言软家中提供基础功能的函数。库函数文件以h为文件后缀,如C语言的stdio.h文件包括了printf(), scanf (),open(),close()。C语言中主函数要使用某库函数:#include<库函数文件名> ...
教材/考试/认证 离散实验 一个包的传递 用warshall
&nbsp;实验源代码
//Warshall.cpp&nbsp;#include<stdio.h>&nbsp;void&nbsp;warshall(int&nbsp;k,int&nbsp;n)&nbsp;{&nbsp;int&nbsp;i&nbsp;,&nbsp;j,&nbsp;t;&nbsp;int&nbsp;temp[20][20];&nbsp;for(int&nbsp;a=0;a<k;a++)&nbsp;{&nbsp;printf("请输入矩阵第%d&nbsp;行元素:",a);&nbsp;for(int&nbsp;b=0;b<n;b++)&nbsp;{& ...
数据结构 成績顯示三個部份abc #include<stdio.h> #include<stdlib.h> int main(void) { float gread
成績顯示三個部份abc
#include<stdio.h>
#include<stdlib.h>
int main(void)
{
float gread
printf("請輸入分數\n")
scanf("%f",&gread)
if(gread>=80&&gread<=100)
printf("成績為A\n")
else if(gread>=60&&gread<=79)
{
printf("成績為B\n")
}
else if(gread>=0&&gread<60)
{
printf("成績為C\n")
}
else ...
人工智能/神经网络 河內塔問題 #include<stdio.h> #include<stdlib.h> int fun_a(int) void fun_b(int,int,int,in
河內塔問題
#include<stdio.h>
#include<stdlib.h>
int fun_a(int)
void fun_b(int,int,int,int)
int main(void)
{
int n
int option
printf("題目二:河內塔問題\n")
printf("請輸入要搬移的圓盤數目\n")
scanf("%d",&n)
printf("最少搬移的次數為%d次\n",fun_a(n))
printf("是否顯示移動過程? 是請輸入1, ...
源码 学生成绩管理啊
#include "string.h"
#include "ctype.h"
#include "stdio.h"
search(char pd[])
{FILE *fp;
&nbsp;int time=0,i=0,j=0,add[80],k=0,m;
&nbsp;char *ch,
&nbsp;str[900];
&nbsp;m=strlen(pd);
&nbsp;if((fp=fopen("haha.txt","r"))==NULL)
&nbsp;{
&nbsp; printf("Cannot open this file\n");
&nbsp; exit(0);
&nbsp;}
for( ...
编译器/解释器 (1) 给定一段符合Pascal子集语法的语言
(1) 给定一段符合Pascal子集语法的语言,能成功转换成C语言;
(2) 一个简单的说明文档;
(3) 2007.7.14之前上传到ftp:// C07:C07@10.11.3.71/upload,用学号建立自己的目录;
(4) (可额外加分5分)若有出错处理功能,请在说明文档中写明可以处理哪几项错误。
注意事项:
(1) 两人一组
(2) 可以使用词法、语法自 ...
VIP专区 零基础开始“C语言和程序设计快速入门”视频课程,附课件
01 课程开场白---学什么,怎么学,C语言的重要性.mp4
02 计算机基础---程序执行原理和编译原理.mp4
03 计算机进制及计算机内存空间.mp4
04 字符在计算机中的编码原理及ACS码表的应用技巧.mp4
05 C开发环境简介及打造自己的C开发环境.mp4
06 用CodeBLOCKS创建第一个C工程及简单使用.mp4
07 两段C代码的比较-C语言规范 ...
源码 利用栈的基本操作实现将任意一个十进制整数N转化为R进制整数。
#include <stdlib.h>
#include<stdio.h>
#include <malloc.h>
#define stack_init_size 100
#define stackincrement 10
typedef struct sqstack
{
int *base;
int *top;
int stacksize;
} sqstack;
int StackInit(sqstack *s)
{
s->base=(int *)malloc(stack_init_size *sizeof(int));
if(!s->base)
return 0;
s->top=s->ba ...
源码 数组子系统
#include <stdio.h>
#include <stdlib.h>
#define SMAX 100
typedef struct SPNode
{
int i,j,v;
}SPNode;
struct sparmatrix
{
int rows,cols,terms;
SPNode data [SMAX];
};
sparmatrix CreateSparmatrix()
{
sparmatrix A;
printf("\n\t\t请输入稀疏矩阵的行数,列数和非零元素个数(用逗号隔开):");
scanf("%d, ...
源码 成绩查询系统
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#define N 100
int iNumOfStu=0;
struct score
&nbsp;&nbsp;{
&nbsp;&nbsp;float math;
&nbsp;&nbsp;float english;
&nbsp;&nbsp;float computer;
&nbsp;&nbsp;};
struct student
&nbsp;&nbsp;{
&nbsp;&nbsp;int number ...