
Linux C入门到放弃
cipher_worker
https://files.pythonhosted.org/packages/58/5f/f592b07d0f04504bf4a48dfa6bbd9fcaa8591169513f845908caf3e8c9f8/SimpleITK-1.2.3-cp37-cp37m-manylinux1_x86_64.whl
展开
-
Linux多文件编译.h或c文件
1.在home中建立test文件,在test中建立myinclude,src文件。myinclude下建立myhead.cpp,myhead.h文件。src中建立main.cpp文件。如下图所示:2.源代码如下:main.cpp:#include <iostream>#include <myhead.h>using namespace std;int...原创 2018-12-29 13:02:58 · 4233 阅读 · 0 评论 -
Linux C 实践戳
1.源代码:这里单位用毫秒。测试程序是两个for循环。#include<stdio.h>#include<sys/time.h>struct timeval tv;int main(){ int count = 0; gettimeofday(&tv, NULL); printf("millisecond:%ld\n",tv....原创 2018-12-29 18:25:08 · 215 阅读 · 0 评论 -
C语言结构体函数的使用
Demo1:#include<stdio.h>#include<malloc.h>struct Hello { void (*p)(char* name);};void sayHello(char* name) { printf("你好,%s!\n", name);}int main() { struct Hello* h =...原创 2018-12-29 18:48:31 · 12493 阅读 · 0 评论