码迷,mamicode.com
首页 >  
搜索关键字:visaul stdio    ( 10042个结果
实验1 c语言开发环境使用和数据类型,运算符,表达式
//打印一个字符小人 #include <stdio.h> int main() { printf(" o\n"); printf("<H>\n"); printf("I I\n"); printf(" o\n"); printf("<H>\n"); printf("I I\n"); return ...
分类:编程语言   时间:2021-03-15 11:13:42    阅读次数:0
第一次实验课
#include<stdio.h> int main() { int x, y; int r1, r2, r3, r4; x = 1; y = 2; r1 = x + y; r2 = x - y; r3 = x * y; r4 = x / y; printf("r1 = %d\n", r1); pr ...
分类:其他好文   时间:2021-03-15 11:09:08    阅读次数:0
实验1 C语言开发环境使用和数据类型、运算符、表达式
实验任务1.1// c语言实验1.cpp : 定义控制台应用程序的入口点。 //列向打印两个字符小人。 #include "StdAfx.h" #include<stdio.h> #include<stdlib.h> int main() { printf(" 0 \n"); printf("<H> ...
分类:编程语言   时间:2021-03-15 11:00:49    阅读次数:0
putchar与getchar
#include <stdio.h>#include <stdlib.h>void myputs(char*p) //此处的*号是标志,标志这P是一个指针{ if(p==NULL){ printf("需要输出的字符串为空,请重新输入"); }else{ while(1) {putchar(*p++) ...
分类:其他好文   时间:2021-03-11 14:18:40    阅读次数:0
pipioj 1026: a+b问题(简单模拟)
http://www.pipioj.online/problem.php?id=1026 1 #define IO std::ios::sync_with_stdio(0),cin.tie(0),cout.tie(0); 2 #define bug(x) cout<<#x<<" is "<<x<<e ...
分类:其他好文   时间:2021-03-10 13:26:07    阅读次数:0
1285【毕设课设】基于单片机SHT11温湿度采集报警系统设计
【资源下载】百度网盘下载地址如下:https://docs.qq.com/doc/DTlRSd01BZXNpRUxl #include<reg51.h> #include <intrins.h> #include <math.h> #include <stdio.h> #define LCD_DB ...
分类:其他好文   时间:2021-03-09 13:49:00    阅读次数:0
修改if-else多层嵌套的方法
例子:在判断三角形形状的一个程序中,会出现 if-else 的多层嵌套,可利用程序的顺序执行结构重构代码,使其更可读。如果还想保证代码的安全性,可以用函数封装这段代码。 #include <stdio.h> #include <stdlib.h> #define PI 3.1415926 /* ru ...
分类:其他好文   时间:2021-03-08 13:44:39    阅读次数:0
STL之queue 与 priority_queue
queue //STL之queue用法 //实现先进先出 #include<stdio.h> #include<queue> using namespace std; int main() { //定义 queue<int> qu; //进队 qu.push(1); qu.push(2); qu.p ...
分类:其他好文   时间:2021-03-08 13:44:24    阅读次数:0
STL之map
//STL之MAP用法 //以往定义的数组实现了int类型向其他类型的映射 //现在想要实现其他类型向其他类型的映射 //通过map实现键值对存储 #include<stdio.h> #include<map> using namespace std; int main() { //定义 map<c ...
分类:其他好文   时间:2021-03-08 13:34:05    阅读次数:0
数论:入门到入土 Three
超短文警告! 埃氏筛: #include <iostream> #include <cstring> #include <stdio.h> #define HRiver2 return #define Warma 0 #define ll long long #define maxn 114514 ...
分类:其他好文   时间:2021-03-08 13:23:25    阅读次数:0
10042条   上一页 1 ... 18 19 20 21 22 ... 1005 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!