摘要: Ubuntu下gcc安装及使用 sudo apt update报错 sudo apt update 命中:1 http://packages.microsoft.com/repos/vscode stable InRelease 命中:2 http://ppa.launchpad.net/eleme 阅读全文
posted @ 2019-09-16 19:11 浪迹天崖_1 阅读(1965) 评论(0) 推荐(0) 编辑
摘要: ubuntu14.0安装arm-linux-gcc交叉编译环境 1、下载文件: 安装包:arm-linux-gcc-4.5.1-v6-vfp-20120301.tgz 下载地址 http://pan.baidu.com/s/1pJwQ6Sj 2、开始安装(建议大家新建一个文件夹),然后将文件复制到新 阅读全文
posted @ 2019-09-16 19:10 浪迹天崖_1 阅读(288) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <time.h> int main () { time_t rawtime; //时间类型(time.h 定义) struct tm*timeinfo; //时间结构,time.h 定义如下: int tm_sec; int tm_min; i 阅读全文
posted @ 2019-09-16 18:58 浪迹天崖_1 阅读(739) 评论(0) 推荐(0) 编辑
摘要: 1 #include<time.h> 2 #include<stdio.h> 3 int main() 4 { 5 time_t timep; 6 struct tm *p; 7 time (&timep); 8 p=gmtime(&timep); 9 printf("%d\n",p->tm_sec 阅读全文
posted @ 2019-09-16 18:53 浪迹天崖_1 阅读(1080) 评论(0) 推荐(0) 编辑
摘要: 1 # include <iostream> 2 # include <windows.h> 3 # include <time.h> 4 # include <iomanip> 5 # define BUF 255 6 7 using namespace std; 8 9 class Time 1 阅读全文
posted @ 2019-09-16 18:50 浪迹天崖_1 阅读(420) 评论(0) 推荐(0) 编辑
摘要: 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<math.h> 4 5 typedef int DataType; 6 typedef struct node{ //结点类型定义 7 DataType data; //结点的数据域 8 stru 阅读全文
posted @ 2019-09-16 18:21 浪迹天崖_1 阅读(680) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 #include<stdio.h> 3 4 #define MAXSIZE 100 5 #define OVERFLOW -2 6 #define ERROR 0 7 #define OK 1 8 9 using namespace std; 10 11 阅读全文
posted @ 2019-09-16 18:19 浪迹天崖_1 阅读(500) 评论(0) 推荐(0) 编辑