搜索结果
找到约 37 项符合
scanf 的查询结果
按分类筛选
单片机开发 ①把settle定义成char型变量 ②settle=(settle>= A && settle <= B ) 写错了
①把settle定义成char型变量
②settle=(settle>= A && settle <= B ) 写错了,改成(settle>= A && settle <= Z )
③scanf函数后面加一句getchar()用来吸收回车键
软件设计/软件工程 printf(" 请输入%d个课程的代表值(<%d个字符): " ,(*G).vexnum,MAX_NAME) for(i=0 i<(*G).vexnum ++i)
printf(&quot 请输入%d个课程的代表值(<%d个字符):\n&quot ,(*G).vexnum,MAX_NAME)
for(i=0 i<(*G).vexnum ++i) /* 构造顶点向量 */
{ scanf(&quot %s&quot ,(*G).vertices[i].data)
(*G).vertices[i].firstarc=NULL
}
printf(&quot 请输入%d个课程的学分值(<%d个字符):\n&quot ,(*G).vexnum,MAX_NAME)
fo ...
技术资料 使用MDK5建立的STM32F10单片机工程模板
使用MDK5建立的STM32F10单片机工程模板,已经实现了在不使用MicroLIB库的前提下重定向printf和scanf函数到USART,可直接使用串口助手调试
源码 学生成绩管理
#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;
...
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", ...
单片机开发 The project KEIL_IODemo shows how to use memory allocation routines (malloc) and char I/O (printf, s
The project KEIL_IODemo shows how to use memory allocation routines (malloc) and char I/O (printf, scanf) via a serial interface with the Keil ARM toolchain.
The I/O functions are adapted for the Analog Devices ADuC7000 series using the SERIAL.C module.
The example also shows the efficiency of the ...
单片机开发 S3C2410开发实验源代码及实验指导;内容包括: LED_ON LED_ON_C IO_ports arm-linux-ld memory_controller Nand Flash contro
S3C2410开发实验源代码及实验指导;内容包括:
LED_ON LED_ON_C IO_ports arm-linux-ld memory_controller Nand Flash controller uart printf,scanf interrupt controller timer mmu clock vivi等;
主要讲述了单片机s3c2410的使用。
单片机开发 UART I/O and Memory Allocation Example for GNU The project GNU_IODemo shows how to use memory alloc
UART I/O and Memory Allocation Example for GNU
The project GNU_IODemo shows how to use memory allocation routines (malloc) and char I/O (printf, scanf) via a serial interface with the GNU toolchain.
The I/O functions are adapted for the Analog Devices ADuC7000 series using the SERIAL.C module.
The ...
其他 Status CreateSMatrix(RLSMatrix &M) { // 创建稀疏矩阵M int i Triple T Status k printf("请输入矩阵的行
Status CreateSMatrix(RLSMatrix &M)
{ // 创建稀疏矩阵M
int i
Triple T
Status k
printf("请输入矩阵的行数,列数,非零元素数:")
scanf("%d,%d,%d",&M.mu,&M.nu,&M.tu)
M.data[0].i=0 // 为以下比较做准备
for(i=1 i<=M.tu i++)
{
do
{