test.c #include <stdio.h> #include <stdlib.h> #include <string.h> #include <limits.h> int main(int argc, char const *argv[]) { char *buf = NULL; int f ...
分类:
其他好文 时间:
2019-12-10 00:43:48
阅读次数:
81
1 #include 2 #pragma comment(lib, "WtsApi32.lib") 3 void fun17(int argc, char *argv[]){ 4 ////计算机名 5 //TCHAR szServerName[32] = TEXT("DESKTOP-45J0D6P"... ...
一、程序功能 读取一系列的CT dcm图片,然后重新写入到一个文件夹 二、代码 #pragma warning(disable:4996) #include "itkGDCMImageIO.h" #include "itkGDCMSeriesFileNames.h" #include "itkIma ...
分类:
其他好文 时间:
2019-12-05 01:31:37
阅读次数:
195
像素积分图计算: 1 #include <opencv2/opencv.hpp> 2 #include <iostream> 3 4 using namespace cv; 5 6 int main(int argc, char** argv) { 7 Mat src = imread("L:/5. ...
分类:
其他好文 时间:
2019-12-04 16:08:40
阅读次数:
165
int main(int argc, char* argv[]){ int i = 0; int arr[3] = {0}; for(; i<=3; i++){ arr[i] = 0; printf("hello world\n"); } return 0; } ...
分类:
其他好文 时间:
2019-12-02 10:28:04
阅读次数:
82
在实际工作中有可能会碰到需要在nginx命令行执行php脚本的时候,当然你可以去配置一个conf用外网访问。 在nginx命令行中 使用 php index.php 就可以执行这个index.php脚本了,但是怎么传递参数呢?那就要用到$argv和$aegc了。不用开启什么设置 直接在脚本中使用,类 ...
分类:
Web程序 时间:
2019-11-25 09:50:42
阅读次数:
91
常量表达式看起来像函数,但其实不是函数,函数可以被调用, #include <iostream> constexpr double GetPi() { return 22.0 / 7 ;} constexpr double TwicePi() { return 2 * GetPi(); } int ...
分类:
编程语言 时间:
2019-11-24 15:38:02
阅读次数:
106
int main(int argc, char *argv[]) { int t = 10; //t: 左值 int t2 = t + 1; //t: 右值 int a = 1; const int &b = a + 1; // 左值引用 // int &b = a + 1; // 错误 cout ...
分类:
其他好文 时间:
2019-11-21 12:29:35
阅读次数:
84
最后编辑: 2019 11 6 版本: gcc version 5.4.0 20160609 (Ubuntu 5.4.0 6ubuntu1~16.04.11) 一、进程标识 每一个进程都有一个唯一的非负整数的ID, 该类型为 . 当进程退出或者被杀死后,进程 ID 会被系统复用. 与文件句柄不同的是 ...
分类:
系统相关 时间:
2019-11-20 21:20:17
阅读次数:
102
1.数组形参 void fun(int a[100]) void fun(int a[]) void fun(int *a) void fun(char*p[100],int n) void fun(char*p[],int n) void fun(char**p,int n) 如果数组作为函数参数 ...
分类:
编程语言 时间:
2019-11-20 19:53:46
阅读次数:
67