#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
#include<bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> PII; #define ls l,mid,rt<<1 #define rs mid+1,r,rt<<1|1 const ...
分类:
其他好文 时间:
2021-03-15 11:08:22
阅读次数:
0
#include <fstream> #include <strstream> using namespace std; int main(int argc,char*argv[]) { strstream textfile; ifstream in(argv[1]); textfile << in ...
分类:
编程语言 时间:
2021-03-15 11:07:17
阅读次数:
0
实验任务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
首先看一下man文档中这三个函数的定义: select函数: #include <sys/time.h> #include <sys/types.h> #include <unistd.h> int select(int nfds, fd_set *readfds, fd_set *writefds ...
分类:
其他好文 时间:
2021-03-15 10:42:26
阅读次数:
0
这两个函数对我来说还是印象比较深刻的,因为当初刚来上海找工作的时候,在那家公司做的项目就用到了tag转handle。 但是无奈我当时基础太差,虽然项目没做好,但是这两个函数却印象深刻,感觉一辈子都不会忘记。 关于tag和handle,我通俗的讲, tag就是临时对象标识,关了prt重新打开,tag就 ...
分类:
其他好文 时间:
2021-03-12 14:09:16
阅读次数:
0
【资源下载】下载地址如下:https://docs.qq.com/doc/DTlRSd01BZXNpRUxl #include "inif.h" #include <at89x52.h> #include <absacc.h> #include "LCD1602.H" unsigned char d ...
分类:
其他好文 时间:
2021-03-12 12:41:26
阅读次数:
0
头文件:#include<string> [注]:文中关于个数的参数文档中为 size_type 型,更本质是 size_t 型,因为typedef size_t size_type,而 size_t 在不同系统内实现不同,大概为 unsigned int 型,为简便起见,本文均写为 int 型。另 ...
分类:
编程语言 时间:
2021-03-11 18:19:40
阅读次数:
0
【资源下载】下载地址如下:https://docs.qq.com/doc/DTlRSd01BZXNpRUxl #include <reg52.H>//器件配置文件 #include <intrins.h> //传感器接口 sbit RX = P3^2; sbit TX = P3^3; //按键声明 ...
分类:
其他好文 时间:
2021-03-11 15:20:52
阅读次数:
0
【资源下载】下载地址如下:https://docs.qq.com/doc/DTlRSd01BZXNpRUxl #include <reg51.h> //预处理命令,定义SFR的头 #include <math.h> #include <intrins.h> //内部函数库文件 #define uch ...
分类:
其他好文 时间:
2021-03-11 14:59:48
阅读次数:
0