搜索结果
找到约 16 项符合
getchar 的查询结果
单片机开发 欧几里德算法:辗转求余 原理: gcd(a,b)=gcd(b,a mod b) 当b为0时,两数的最大公约数即为a getchar()会接受前一个scanf的回车符
欧几里德算法:辗转求余 原理: gcd(a,b)=gcd(b,a mod b) 当b为0时,两数的最大公约数即为a getchar()会接受前一个scanf的回车符
单片机开发 本库利用51的timer2
本库利用51的timer2,9600bps适用于有片内外部存储器的51芯片占用32byte缓存,重写putchar,getchar函数,循环队列,后台操作。
单片机开发 RtosSerial.lib rtosSerial.h 使用说明
RtosSerial.lib rtosSerial.h 使用说明,本库利用51的timer2,9600bps适用于有片内外部存储器的51芯片占用32byte缓存,重写putchar,getchar函数,循环队列,后台操作。
可与rtx51很好集成。任何人可以自由分发,和应用。有疑问可以联系serialrtos@163.net ...
微处理器开发 MIPS架构下串口API函数集合,包括getcharputcharscanfprintf
MIPS架构下串口API函数集合,包括getchar\putchar\scanf\printf
VC书籍 高质量C++编程 电子版 林锐  如果输入参数以值传递的方式传递对象
高质量C++编程 电子版 林锐
&#61548 如果输入参数以值传递的方式传递对象,则宜改用“const &”方式来传递,这样可以省去临时对象的构造和析构过程,从而提高效率。
&#61548 【规则6-2-2】函数名字与返回值类型在语义上不可冲突。
违反这条规则的典型代表是C标准库函数getchar。 ...
单片机开发 AVR306串口程序例子----查询模式 Application Note AVR306 * Polled mode driver for UART, this is the similar to
AVR306串口程序例子----查询模式
Application Note AVR306
* Polled mode driver for UART, this is the similar to the
* library default putchar() and getchar() in ICCAVR
单片机开发 ①把settle定义成char型变量 ②settle=(settle>= A && settle <= B ) 写错了
①把settle定义成char型变量
②settle=(settle>= A && settle <= B ) 写错了,改成(settle>= A && settle <= Z )
③scanf函数后面加一句getchar()用来吸收回车键
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", ...
Linux/uClinux/Unix编程 c语言程序源
#include <iostream>
using namespace std;
class Student
{
public:
Student(int, int);
int num;
int grade;
};
Student::Student(int n, int g)
{
num = n;
grade = g;
}
int maxGradeIndex(Student* s)
{
int maxGrade, index = 0, i = 0;
maxGrade = s[0].grade;
for (i = 0; i<5; i++)
{
if (s[i].grade > maxGrade)
...
源码 运动会源代码
#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 ...