AlgebraMaster

Modern C++ 创造非凡 . 改变世界 一起铲除毒瘤KPI

导航

上一页 1 ··· 6 7 8 9 10 11 12 下一页

2016年11月20日 #

C++ 11 snippets , 2

摘要: <1>auto ,initializer_list<T>,auto指向函数指针的简易,和typdef 定义的类型执行函数指针有多复杂。 #include <iostream> #include <initializer_list> #include <string> using namespace 阅读全文

posted @ 2016-11-20 23:16 gearslogy 阅读(362) 评论(0) 推荐(0)

2016年9月17日 #

C++ 11 snippets , 1

摘要: 1->创建7个Thread,跑个非常大的循环.观察CPU void func(string &name) { for(auto i=0;i<0xFFFFFFFF;i++) { //cout << name << this_thread::get_id() << "running \n"; } } i 阅读全文

posted @ 2016-09-17 21:43 gearslogy 阅读(610) 评论(0) 推荐(0)

2016年8月2日 #

QFile QDataStream QTextStream

摘要: #include <QCoreApplication> #include <QMap> #include <QFile> #include <QDir> #include <QDebug> #include <QTextStream> #include <QDataStream> #include 阅读全文

posted @ 2016-08-02 16:48 gearslogy 阅读(654) 评论(0) 推荐(0)

2016年7月5日 #

Templates<2>

摘要: Part:template specialized Part1:template specialized #include <iostream> #include <stdio.h> using namespace std; template <typename To,typename From> 阅读全文

posted @ 2016-07-05 15:27 gearslogy 阅读(320) 评论(0) 推荐(0)

2016年5月16日 #

C 和 C++ 一些基础

摘要: 位运算: Part1: #include <iostream> using namespace std; int main(int argc, char *argv[]) { //unsigned char per byte that contain 00000000 - 11111111 unsi 阅读全文

posted @ 2016-05-16 23:29 gearslogy 阅读(291) 评论(0) 推荐(0)

2016年5月10日 #

Write Your software base on plugin(C/C++ ABI)

摘要: 一个软件,如果把所有的功能写进C++源码,维护,扩展,编译都特别麻烦。 共享库后缀名。Linux -> .so Windows -> .dll 关于动态符号显示问题,具体可以看系统的API,现在做了个只支持Linux. Linux 查看一个动态库的符号 nm -D plugin.so 注意Linux 阅读全文

posted @ 2016-05-10 17:35 gearslogy 阅读(457) 评论(0) 推荐(0)

2016年4月22日 #

Interpolation particles In Katana

摘要: I write the sphere radius interpolation for katana plugin that can transfer attributes,render attributes ,render velocity motion blur directly. --GLY_ 阅读全文

posted @ 2016-04-22 13:50 gearslogy 阅读(468) 评论(0) 推荐(0)

2016年4月19日 #

Arnold AtArray API Test

摘要: #include #include #include #include #include using namespace std; void print_the_type() { printf("AI_TYPE_BYTE %5d \n",AI_TYPE_BYTE); //0 printf("AI_TYPE_INT %5d \n",AI_TYPE_INT)... 阅读全文

posted @ 2016-04-19 21:57 gearslogy 阅读(584) 评论(0) 推荐(0)

2016年4月18日 #

Linux C 学习

摘要: 格式输出浮点 整数空格输出 ,下面控制前面5个空格 如果是%-5d,就是右对齐。上面的float输出也是一样的 进程fork: #include <stdio.h> #include <unistd.h> #include <sys/types.h> /* // THIS PROGRAM WILL 阅读全文

posted @ 2016-04-18 22:10 gearslogy 阅读(599) 评论(0) 推荐(1)

2016年3月27日 #

Python tips

摘要: <1>完全吊炸天构造器的写法。。。 import os import threading,time class GenericInputData(object): def read(self): raise NotImplementedError @classmethod def generate_ 阅读全文

posted @ 2016-03-27 22:32 gearslogy 阅读(427) 评论(0) 推荐(0)

上一页 1 ··· 6 7 8 9 10 11 12 下一页