摘要:
1.学习内容 2.Activity之间的跳转 MainActivity package com.example.kotlinstudy import android.content.Intent import androidx.appcompat.app.AppCompatActivity im 阅读全文
摘要:
#include <stdio.h> #define MAX(a, b) ({\ __typeof(a) _a = (a);\ __typeof(b)_b = (b);\ _a > _b ? _a : _b;\ }) #define P(func) {\ printf("%s = %d\n", #f 阅读全文
摘要:
1.环境配置 eclipse安装kotlin插件地址http://marketplace.eclipse.org/content/kotlin-p;ugin-eclipse 2.Hello World // 变量的声明和使用 fun main(args: Array<String>) { var n 阅读全文
摘要:
1.坐标系 右手坐标系:伸出右手,大拇指指向X轴正方向,食指指向y轴正方向,弯曲中指的方向为z轴正方向。 左右坐标系:伸出左手,大拇指指向X轴正方向,食指指向y轴正方向,弯曲中指的方向为z轴正方向。 常用平台使用的坐标系 多坐标系:从初始坐标系变换而来, 世界坐标系:原始坐标系,唯一不变的,是所有坐 阅读全文
摘要:
1.启动命令 nohup java -jar xxxxxx.jar // 不挂断运行命令,当账户退出或终端关闭时,程序仍然运行 2.查看java运行端口 查看当前应用所占用端口: netstat -nlp|grep 8084 //8084是系统启动访问的端口, 由此可得到5890 是java运行的端 阅读全文
摘要:
1.1.定义简单.properties文件 datasource.dataSources[0].id=1 datasource.dataSources[0].dsId=postgisA datasource.dataSources[0].type=postgis datasource.dataSou 阅读全文
摘要:
#include <stdio.h> int binary_search(int *arr,int n, int x) { int head = 0, tail = n - 1, mid; while(head <= tail) { mid = (head + tail) >> 1; if (arr 阅读全文
摘要:
1.线性筛 欧拉计划第7题 10001st prime Problem 7 By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the 阅读全文
摘要:
1.变参函数 #include <stdio.h> #include <inttypes.h> #include <stdarg.h> #define P(func) {\ printf("%s = %d\n",#func, func);\ } /* * 求变参列表中的最大值 * @param 阅读全文
摘要:
1.透视投影绘制立方体 阅读全文