码迷,mamicode.com
首页 >  
搜索关键字:visaul stdio    ( 10042个结果
12325 - Zombie's Treasure Chest.
简单枚举+巧妙躲避大枚举量 #include using namespace std; long long n,s1,v1,s2,v2,total; int main() { ios::sync_with_stdio(false); long long T,maxn=0; cin>>T; while(T--) { cin>>n>>s1>>v1>>s...
分类:其他好文   时间:2015-03-15 18:27:31    阅读次数:174
蓝桥杯 基础练习 16进制转10进制
#include?<iostream> #include?"stdio.h" #include?"stdlib.h" #include?"memory.h" using?namespace?std; /* 用math.h的pow函数?测评系统会编译错误,所以自己写个pow函数 */ //题目要求最大8位,所以可...
分类:其他好文   时间:2015-03-15 15:24:02    阅读次数:135
蓝桥杯 基础练习 10进制转16进制
#include?<iostream> #include?"stdio.h" #include?"stdlib.h" #include?"memory.h" using?namespace?std; int?main(int?argc,?char?*argv[]) { unsigned?int?num?; cin?>>?num; int?tmp[999...
分类:其他好文   时间:2015-03-15 14:01:46    阅读次数:151
软件工程--课堂练习之四则运算之续编
一、设计思想在之前的基础上添加了如下功能:1.为使用户可定制数量以及打印方式,用户自己输入2.参数设置:提示用户参与运算的数值范围; 提示用户输入出多少道题目; 提示用户输入题目输出列数; 提示用户是否有乘除法运算; 提示用户结果是否有负数;二、代码 1 #include "stdio.h" 2.....
分类:其他好文   时间:2015-03-15 12:22:54    阅读次数:122
三种排序方法(c语言)
1 #include "stdio.h" 2 void main() 3 {void read_data(int a[],int n); 4 void write_data(int a[],int n); 5 void comp(int a[],int n); 6 void insert(i...
分类:编程语言   时间:2015-03-15 12:06:37    阅读次数:152
C语言K&R习题系列——句子中一个空格代替多个空格的四种方法
原题:Writeaprogramtocopyitsinputtoits output,replacingeachstringofoneormoreblanksbyasingleblank.第一种:这种最常用,设置一个inspace作为布尔变量,标志当前输入是否在字符中,或在字符外#include<stdio.h> intmain(void) { intc; intinspace=0; while((c=getc..
分类:编程语言   时间:2015-03-15 07:15:40    阅读次数:487
C语言K&R习题系列——统计文档中每个单词所占字母个数,以直方图形式输出
原题:Writeaprogramtoprinta histogramofthelengthsofwordsinitsinput.Itiseasytodrawthe histogramwiththebarshorizontal;averticalorientationismorechallenging.这也是我第一个过百行的代码(带注释,空格什么的)主要分两个部分:输入和输出#include<stdio.h> #def..
分类:编程语言   时间:2015-03-15 07:13:54    阅读次数:404
C语言K&R习题系列——使用缓冲区函数接受长字符输入
原题:Writeaprogramtoprintallinputlines thatarelongerthan80characters.,实现起来不算难,关键是用到了缓冲区,很不错的一种思想!/*Writeaprogramtoprintallinputlines *thatarelongerthan80characters */ #include<stdio.h> #defineMINLENGTH81 /*readbuff:read..
分类:编程语言   时间:2015-03-15 07:12:44    阅读次数:233
C语言K&R习题系列——统计一段文字中各个字母出现的频率
原题:/*Writeaprogramtoprintahistogramofthefrequenciesof*difficentcharactersinitinputs*/这个和上一个类似输入部分#include<stdio.h> #defineNUM_CHARS256 main(void) { intc; intdone=0; intthisIdx=0; longfrequrr[NUM_CHARS+1]; longthisVal=0; longmaxV..
分类:编程语言   时间:2015-03-15 07:12:11    阅读次数:175
lPC1788的串口通讯
#ifndef __DEBUGSERIAL_H_#define __DEBUGSERIAL_H_#include "sys.h"#include "stdio.h"extern u8 serialBuffer[256];extern u16 serialStatus;//?void Debug_Se...
分类:其他好文   时间:2015-03-15 07:03:13    阅读次数:246
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!