上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要: 链接:https://ishare.iask.sina.com.cn/f/37286470.html 阅读全文
posted @ 2021-01-09 01:10 楸壳 阅读(370) 评论(0) 推荐(0) 编辑
摘要: 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<curses.h> 4 5 #define pri(fmt, ...) printf("["__FILE__"] <%s>_<%d> " ,__FUNCTION__,__LINE__ );\ 6 阅读全文
posted @ 2021-01-09 01:00 楸壳 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 在用c语言实现简单的飞机游戏时,书中使用的是conio库,由于我使用的是linux系统,故下载一个ncurses库进行替换。 下面是安装过程 1、下载ncurses库源码压缩包大家可以去这个网址下载:http://ftp.gnu.org/pub/gnu/ncurses/ 我选用的是ncurses-6 阅读全文
posted @ 2021-01-08 23:42 楸壳 阅读(2043) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>//#include <conio.h>void main(){ char ch; for(;;){// system("stty -echo"); ch = getch(); if(ch==27) break; if(ch==13) continue; putc 阅读全文
posted @ 2021-01-07 21:50 楸壳 阅读(1112) 评论(0) 推荐(0) 编辑
摘要: 1、break语句 break语句可以用于跳出while、for、do while循环 用法为: if(条件) break; 当循环体中执行break语句后,循环体剩余语句将被跳过,程序控制直接跳到循环体外 2、continue语句 continue语句的功能的语句是结束本次循环。对于for循环,跳 阅读全文
posted @ 2021-01-05 16:06 楸壳 阅读(494) 评论(0) 推荐(0) 编辑
摘要: 1、while循环控制语句 while循环语句用法: while(条件) { 语句序列; } 程序执行时,先判断条件是否为逻辑真,若逻辑真则执行循环体内的语句块,执行一次后,将再判断条件时否为真,重复上述过程, 直到条件逻辑为假,语句快将不再被执行 程序设计中,对预先不知循环次数的程序设计,可以采用 阅读全文
posted @ 2021-01-05 11:13 楸壳 阅读(477) 评论(0) 推荐(0) 编辑
摘要: 材料:arduino mege 2560 、 LCD12864B、杜邦线、数据线 接线: VSS GND VDD 5V RS 8 R/W 9 E 3 PSB GND BLA 5V BLK GND 驱动LCD12864需要的库文件,在arduino的管理库里没有,需要下载,我整理好了上传到githuu 阅读全文
posted @ 2020-12-25 14:03 楸壳 阅读(1928) 评论(0) 推荐(0) 编辑
摘要: 1、安装MariaDB: sudo pacman -S mariadb libmariadbclient mariadb-clients //安装mariadb sudo mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/ 阅读全文
posted @ 2020-12-13 02:39 楸壳 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 硬件:HC-SR501 人体红外感应模块,Arduinouno,杜邦线、led灯 连接: 效果:有人灯亮,没人灯灭 代码: int PRI_sensor = 8; int LED = 13;void setup() { pinMode(PRI_sensor,INPUT); pinMode(LED,O 阅读全文
posted @ 2020-12-09 20:58 楸壳 阅读(1129) 评论(0) 推荐(0) 编辑
摘要: 参考文档:http://www.taichi-maker.com/homepage/reference-index/arduino-library-index/irremote-library/ 参考文档:https://www.arduino.cn/thread-3259-1-1.html 先获得 阅读全文
posted @ 2020-12-05 15:56 楸壳 阅读(825) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页