摘要: 转载于:https://www.cnblogs.com/zoutingrong/p/12868667.html 正是步行者,一步步登峰! 阅读全文
posted @ 2020-06-07 18:12 oldxi 阅读(290) 评论(0) 推荐(0)
摘要: OBJ=test.o zhan.o duilie.o ditu.o welcome.o init.o menu.o time.o user.o data.o test:$(OBJ) zhan.h duilie.h ditu.h welcome.h init.h menu.h time.h user. 阅读全文
posted @ 2020-06-07 18:00 oldxi 阅读(568) 评论(0) 推荐(0)
摘要: void jiesujiemian() { //printf("\t\t\t乘客您慢走!\n"); printf("\t\t\t***已到达目的地,您慢走!***\n"); FILE *fp; char ch; fp=fopen("Data.txt","a"); if(fp!=NULL){ prin 阅读全文
posted @ 2020-06-07 17:53 oldxi 阅读(309) 评论(0) 推荐(0)
摘要: 详细代码,参考如下网址: https://blog.csdn.net/keith_bb/article/details/53055380 正是步行者,一步步登峰! 阅读全文
posted @ 2020-04-26 21:27 oldxi 阅读(1518) 评论(0) 推荐(0)
摘要: 在LINUX下不能使用getch()函数来使密码不回显,因为在linux下没有conio.h库文件,去网上找到解决方法将其替换为curses.h,仍然没用 #include<stdio.h> #include<stdlib.h> #include<string.h> int main(int arg 阅读全文
posted @ 2020-04-26 20:03 oldxi 阅读(438) 评论(0) 推荐(0)
摘要: 代码如下: /*AUTOR:XIXI*/#include<stdio.h> #include<stdlib.h> #include<string.h> typedef struct node{ char name[20]; //定义两个字符型数组 char pass[20]; struct node 阅读全文
posted @ 2020-04-25 11:21 oldxi 阅读(667) 评论(0) 推荐(0)
摘要: 首先在当前目录下创建数据库,代码如下: [ouyangxi@DESKTOP-QNJ4U2U code]$ sqlite3 tax.db SQLite version 3.22.0 2018-01-22 18:45:57 Enter ".help" for usage hints. sqlite> 接 阅读全文
posted @ 2020-04-24 20:39 oldxi 阅读(412) 评论(0) 推荐(0)
摘要: 源代码如下: #include<msp430f169.h> unsigned char Tab[10]={0x3F,0x06,0x5B,0x4F,0x66,0x6D,0x7D,0x07,0x7F,0x6F}; unsigned char Pos[4]={0x0E,0x0D,0x0B,0x07}; u 阅读全文
posted @ 2020-04-08 14:19 oldxi 阅读(382) 评论(0) 推荐(0)
摘要: 源代码如下: /*AUTOR:XIXI DATE:2020.4.1 23:37:16 */ #include<gtk/gtk.h> void delete_event(GtkWidget *widget,GdkEvent *event,gpointer data){ gtk_main_quit(); 阅读全文
posted @ 2020-04-01 23:40 oldxi 阅读(447) 评论(0) 推荐(0)
摘要: 源代码如下: #include <gtk/gtk.h> /* 功能: 设置背景图 * widget: 主窗口 * w, h: 图片的大小 * path: 图片路径 */ void chang_background(GtkWidget *widget, int w, int h, const gcha 阅读全文
posted @ 2020-04-01 23:28 oldxi 阅读(1358) 评论(0) 推荐(0)