上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 45 下一页
摘要: package mainimport ( "fmt" "sync")var wg sync.WaitGroupfunc asyncTestFunc() { for i := 0; i < 100; i++ { fmt.Println(i) } wg.Don... 阅读全文
posted @ 2014-05-09 19:38 自由出土文物 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 直接贴代码func sliceModify(slice []int) { // slice[0] = 88 slice = append(slice, 6)}func main() { slice := []int{1, 2, 3, 4, 5} sliceModify(sli... 阅读全文
posted @ 2014-05-03 14:07 自由出土文物 阅读(8532) 评论(6) 推荐(1) 编辑
摘要: macstore下载go2shell,放你喜欢的目录,按住command,拖动到finder顶部的工具栏即可终端直接打开finder,终端输入open .注意,后面红色的点,表明当前目录 阅读全文
posted @ 2014-04-26 19:39 自由出土文物 阅读(1129) 评论(0) 推荐(0) 编辑
摘要: 俺的环境,os x,目的,生成64位linux的elf文件直接下载osx的包就可以,不需要特意去下载源码包,我的go目录是~/golang/gocd ~/golang/go/srcGOOS=linux GOARCH=amd64 ./make.bash终端党到工程目录直接执行GOOS=linux GO... 阅读全文
posted @ 2014-04-25 21:13 自由出土文物 阅读(2982) 评论(0) 推荐(0) 编辑
摘要: 下载完2dx,运行setup.py,参考设置ANDROID_SDK,NDK_ROOT,ANT_ROOT变量创建工程cocos new testGame -p com.game.test -l cpp -d ~/Projects/注意,在xcode项目里面,添加资源的时候,注意选用第二个选项,否则可能... 阅读全文
posted @ 2014-04-14 10:53 自由出土文物 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 安装antbrew install antant默认的目录在/usr/local/binmvim ~/.profile,添加export ANT_ROOT=/usr/local/bin. ~/.profile看看还有没有问题python ~/.setup/py新建工程cocos new MyGame... 阅读全文
posted @ 2014-04-11 10:13 自由出土文物 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 测试动态库test_so.hint test_so_func(int a,int b);test_so.c#include "test_so.h"int test_so_func(int a,int b){ return a*b;}生成sogcc -shared ./test_so.c -o ... 阅读全文
posted @ 2014-04-10 20:09 自由出土文物 阅读(5782) 评论(0) 推荐(0) 编辑
摘要: 1 void showSplash(void)2 {3 QSplashScreen*splash=newQSplashScreen;4 splash->setPixmap(QPixmap(":/img/aa.png"));5 splash->show();6 splash->showMessage(QObject::tr("loading..."),Qt::AlignHCenter|Qt::AlignVCenter,Qt::white);splash->finish(&w);7 delete splash;8 } 阅读全文
posted @ 2014-03-08 12:17 自由出土文物 阅读(234) 评论(0) 推荐(0) 编辑
摘要: testDll和testExe项目备注:windows下dll内不需要newQApplication,linux和mac下面需要在动态库里面newQApplicationtestdll.h 1 #ifndef TESTDLL_H 2 #define TESTDLL_H 3 4 #include"testDll_global.h" 5 6 extern "C" TESTDLLSHARED_EXPORT void initApp(void); 7 extern "C" TESTDLLSHARED_EXPORT void showDlg(v 阅读全文
posted @ 2014-03-08 12:13 自由出土文物 阅读(1505) 评论(0) 推荐(0) 编辑
摘要: include目录只需要添加外面的总目录就可以了,qt creator会自动解析给出详细的提示,这点比assist貌似要好如果include目录里面有空格,这样处理INCLUDEPATH+=$$quote(C:\boost 144 0)静态库需要一个个添加,很好很强大LIBS+=C:\boost_1_44_0\bin.v2\libs\regex\build\msvc-9.0\debug\link-static\threading-multi\libboost_regex-vc90-mt-gd-1_44.lib 阅读全文
posted @ 2014-03-08 12:08 自由出土文物 阅读(180) 评论(0) 推荐(0) 编辑
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 45 下一页