- Powershell脚本的扩展名为“.ps1”
一个获取文件列表并修改文件时间属性的用法:
<#
文件:touch.ps1
用途:用于修改已存在文件时间属性的功能脚本
创建:2016-02-22,ss
修改:2016-02-22,ss| #include <stdio.h> | |
| #include <stdint.h> | |
| // getcharIfNeeded(); | |
| #ifdef _MSC_VER | |
| # include <io.h> | |
| # define ISATTY _isatty(_fileno(stdout)) | |
| #if _WIN32_WINNT < 0x0500 | |
| #undef _WIN32_WINNT | |
| #define _WIN32_WINNT 0x0500 |
| #include <stdio.h> | |
| #include <stdio.h> | |
| // #include <iostream> | |
| // using namespace std; | |
| #ifndef _T | |
| #define _T(S) (S) | |
| #endif |
| { | |
| //http://docs.sublimetext.info/en/latest/reference/build_systems.html | |
| //"name": "Complie", | |
| "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", | |
| "cmd": "C:\\Cygwin\\bin\\g++.exe ${file} -o $file_path\\\\$file_base_name.exe", | |
| "working_dir": "${file_path}", | |
| "selector": "source.c, source.c++, source.cpp", | |
| "encoding": "UTF-8", |
一个获取文件列表并修改文件时间属性的用法:
<#
文件:touch.ps1
用途:用于修改已存在文件时间属性的功能脚本
创建:2016-02-22,ss
修改:2016-02-22,ss| public class CDataAlignment { | |
| public static void main(String[] args) throws java.lang.Exception { | |
| System.out.println(Struct.aligned(1, 1)); | |
| structCharShortDoubleIntTest(1, false); | |
| structCharShortDoubleIntTest(2, false); | |
| structCharShortDoubleIntTest(4, false); | |
| structCharShortDoubleIntTest(8, false); | |
| structCharShortDoubleIntTest(16, false); | |
| structCharShortDoubleIntTest(32, false); |
The export [4] command makes available variables to all child processes of the running script or shell. One important use of the export command is in startup files, to initialize and make accessible environmental variables to subsequent user processes.
Caution Unfortunately, there is no way to export variables back to the parent process, to the process that called or invoked the script or shell.
| #include <stdio.h> | |
| #if (_MSC_VER < 1300) || !defined(_MSC_VER) | |
| typedef signed char i8_t; | |
| typedef signed short i16_t; | |
| typedef signed int i32_t; | |
| typedef unsigned char u8_t; | |
| typedef unsigned short u16_t; | |
| typedef unsigned int u32_t; |
root@desktop:~# gcc --help
Usage: gcc [options] file...
Options:
-pass-exit-codes Exit with highest error code from a phase
--help Display this information
--target-help Display target specific command line options
--help={target|optimizers|warnings|params|[^]{joined|separate|undocumented}}[,...]
Display specific types of command line options
[IBM: Overview of JNI object references][1] [JNI Local Reference Changes in ICS][2]
extern "C" {