描述 给出两个整数 a 和 b , 求他们的和。 1 int aplusb(int a, int b) { 2 // write your code here 3 int _a=0,_b=0; 4 while((a&b) != 0) //判断是否有进位影响 5 { 6 7 _a=a^b; //不带进 ...
分类:
其他好文 时间:
2020-04-17 00:37:01
阅读次数:
58
毛琳淇 201821121007 计算1811 1. 编写程序 在服务器上用Vim编写程序:创建一个命名管道,创建两个进程分别对管道进行读fifo_read.c和写fifo_write.c。给出源代码。 fifo_read.c #include<stdio.h> #include<string.h> ...
分类:
其他好文 时间:
2020-04-17 00:08:56
阅读次数:
81
最近在调研STM32 F10X,准备把公司AVR的MCU项目迁移到STM32上。在调研STM32 i2c这一部分时,在与i2c slave连接断开后,这时再去读/写 i2c slave需要STM32这边的i2c_read/write函数做一些处理。 刚开始在i2c读写timeout后,添加了如下代码 ...
分类:
其他好文 时间:
2020-04-16 19:17:56
阅读次数:
118
用javascript的for循环,打印九九乘法表 javascript: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>用for循环打印九九乘法表</title> <script type="text/javascript" ...
分类:
编程语言 时间:
2020-04-16 14:59:08
阅读次数:
89
题目 The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed fo ...
分类:
其他好文 时间:
2020-04-16 13:20:15
阅读次数:
61
"题目链接" 题目大意 从前有一个叫 $Petya$ 的神仙,嫌自己的序列求$max$太慢了,于是将序列求$max$的代码改成了下面这个样子: 完结撒花!!! ...
分类:
其他好文 时间:
2020-04-16 00:48:06
阅读次数:
51
const rp=require('request-promise') const APPID='xxxxxxxxx' const AppSecret='xxxxxxxxxxxxxx' const URL=`https://api.weixin.qq.com/cgi-bin/token?grant_ ...
分类:
微信 时间:
2020-04-15 18:02:35
阅读次数:
83
-1、在Finder中 显示/隐藏 隐藏文件 显示 隐藏文件,在终端中输入: defaults write com.apple.finder AppleShowAllFiles -bool true 或 defaults write com.apple.finder AppleShowAllFile ...
分类:
系统相关 时间:
2020-04-15 17:50:48
阅读次数:
91
1、FTP的安装 #安装yum install -y vsftpd#设置开机启动systemctl enable vsftpd.service#启动systemctl start vsftpd.service#停止systemctl stop vsftpd.service#查看状态systemctl ...
分类:
其他好文 时间:
2020-04-14 22:13:19
阅读次数:
96
关于String为值类型还是引用类型的讨论一直没有平息,最近一直在研究性能方面的问题,今天再次将此问题进行一次明确。希望能给大家带来点帮助。 如果有错误请指出。 来看下面例子: 复制代码复制代码 //值类型 int a = 1; int b = a; a = 2; Console.WriteLine ...
分类:
其他好文 时间:
2020-04-14 20:19:08
阅读次数:
57