摘要: Clang with libc++ represents today a viable alternative to GCC for C and C++ programmers. I make no claim that Clang with libc++ is necessarily superior toGCC with libstdc++, but it is definitely a more feature complete C++11 alternative. According to thelibc++ website, libc++ is 100% complete C++11 阅读全文
posted @ 2013-04-24 13:35 π秒就是一个纳世纪 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 安装Firefox1. 添加APT源地址#vim /etc/apt/sources.list添加deb http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main2. 导入密钥Key#sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com C1289A293. 更新APT源列表#sudo apt-get update4. 安装FireFox #sudo apt-get install firefox-mozilla-build安装flash 阅读全文
posted @ 2013-03-22 16:46 π秒就是一个纳世纪 阅读(725) 评论(0) 推荐(0) 编辑
摘要: 原文链接有空会翻译,先保存 阅读全文
posted @ 2013-03-10 16:50 π秒就是一个纳世纪 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 原文地址My name is Kevin, and I'm a programmer/designer at Klei. I wrote a bunch of the animation stuff that we used in the Shank series, Mark of the Ninja, and Don't Starve.Our animators work in Flash. We have a concept of a character 'build' which is a set of body-part symbols with mul 阅读全文
posted @ 2013-03-08 23:02 π秒就是一个纳世纪 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 一个文件中有这么一行Button* logo=&Button(50,30,50,50,"logo",".\\res\\pvz\\jmages\\PvZ_Logo.png");以前用着一直都没事,直到今天这个Button类中有一个成员为:std::string text;当初始化时,跟踪进入构造函数中发现,this指针下的text已经被赋值了,值是logo这个字符串但是跳出后,logo这个指针中的成员变量text并没有值直到改成Button logo(50,30,50,50,"logo",".\\res\\pvz\\j 阅读全文
posted @ 2013-03-07 20:38 π秒就是一个纳世纪 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 原文 https://bugzilla.libsdl.org/show_bug.cgi?id=68#c2Description Davide Coppola2006-01-23 04:32:53 ESTI have tried to blit a PNG with an alpha channel on a transparent surface created using format data from the image, the result of SDL_BlitSurface() is just nothing!I have solved my problem using memc 阅读全文
posted @ 2013-03-03 23:50 π秒就是一个纳世纪 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 只需要执行yum install ncurses ncurses-devel即可ubuntu 可以用sudo apt-get build-dep vim-gtk 阅读全文
posted @ 2012-12-01 20:54 π秒就是一个纳世纪 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 前段时间实现了单双向链表以及查找二叉树,今天花了点时间写了下动态栈的实现。初学,代码比较粗糙,望指点。#include #include struct StackNode{ int data; StackNode *next;};struct MyStack{ bool IsEmpty; bool IsFull; int size; StackNode *top;};MyStack *initStack(void){ struct MyStack *p; p=NULL; p=(MyStack *)malloc(sizeof(MyStack)... 阅读全文
posted @ 2012-11-29 19:57 π秒就是一个纳世纪 阅读(127) 评论(0) 推荐(0) 编辑