搜索结果
找到约 33 项符合
scanf 的查询结果
按分类筛选
C/C++语言编程 C语言用户注册及登录
#include<stdio.h>
#include<stdlib.h>
#include<conio.h>
#include<string.h>
main(void)
{ &nbsp; char new_name[4], name[4];
&nbsp; &nbsp; int new_sn ,sn;
&nbsp; &nbsp; printf(" &nbsp; &nbsp; &nbsp; &nbsp;【注册】\n\n");
&nbsp; &nbsp; printf("请输入用户名(四位英文字母):");
&nbsp; &nbsp; scanf("%s", ...
教材/考试/认证 离散实验 一个包的传递 用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;{& ...
源码 利用栈的基本操作实现将任意一个十进制整数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&nbsp;<malloc.h>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
#include&nbsp;<stdio.h>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
#include&nbsp;<stdlib.h>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
#include&nbsp;<string.h>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
#define&nbsp;NULL&nbsp;0&nbsp;&nbsp; &nbsp;&nbsp ...
源码 学生成绩管理啊
#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( ...
源码 数据结构实验
#include&nbsp;<stdio.h>&nbsp;&nbsp;
#include&nbsp;<stdlib.h>&nbsp;///链式栈&nbsp;&nbsp;
&nbsp;&nbsp;
typedef&nbsp;struct&nbsp;node&nbsp;&nbsp;
{&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;int&nbsp;data;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;struc ...
源码 数据结构实验
#include <iostream>
#include <stdio.head>
#include <stdlib.head>
#include <string.head>
#define ElemType int
#define max 100
using namespace std;
typedef struct node1
{
ElemType data;
struct node1 *next;
}Node1,*LinkList;//链栈
typedef struct
{
ElemType *base;
int top;
}SqStack;// ...
源码 学生成绩管理
#include<stdio.h>
#include<windows.h>
int xuanxiang;
int studentcount;
int banjihao[100];
int xueqihao[100][10];
char xm[100][100];
int xuehao[100][10];
int score[100][3];
int yuwen;
int shuxue[000];
int yingyu[100];
int c[100];
int p;
char x[1000][100]="",y[100][100]="";/*x学院 y专业 z班级*/&nbsp;
...
源码 成绩查询系统
#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 ...
源码 学生成绩guanli
#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 ...