继续完善Hello World,建立它的共享库, 包括静态库和动态库。 本节的任务: 1,建立一个静态库和动态库,提供HelloFunc函数供其他程序编程使用,HelloFunc
向终端输出Hello World字符串。 2,安装头文件与共享库。 3, 编写一个程序使用创建的共享库(静态库和动态库)...
分类:
其他好文 时间:
2014-10-02 13:32:43
阅读次数:
551
环境搭建下载地址:http://golang.so/dl/go1.3.windows-amd64.msihttp://golang.so/dl/go1.3.windows-386.msihttp://golang.so/dl/go1.3.linux-amd64.tar.gzhttp://golang...
分类:
编程语言 时间:
2014-10-01 19:05:41
阅读次数:
176
taskset -c 1 ./wrk -c1 -t1 -d30 http://localhost/hellowrk+nginx(helloworld module) sudo taskset -c 0 sbin/nginx nginx: cpu:96% wrk: cpu:46% ...
分类:
Web程序 时间:
2014-10-01 13:56:31
阅读次数:
292
string类型是不可变的,因此不能采用直接赋值的方式。比如一个字符串 helloworld,想把o替换成z,那么只有先替换,然后再迭代。strings="helloworld"hello=strings.replace('o','z')for index,string in enumerate(h...
分类:
编程语言 时间:
2014-09-30 13:26:19
阅读次数:
235
1 1 package hello; 2 3 import java.io.DataInputStream; 4 import java.net.*; 5 6 public class helloworld 7 { 8 public static void main(String[] a...
分类:
其他好文 时间:
2014-09-29 17:19:31
阅读次数:
283
#配置项目路径mkdir hellovi hello/HelloWorld.java#HelloWorld.java代码如下:package hello;public class HelloWorld { public static void main(String[] args) {...
分类:
其他好文 时间:
2014-09-29 13:21:00
阅读次数:
187
voidGetMemory1(char*p){p=(char*)malloc(100);}voidTest1(void){char*str=NULL;GetMemory(str);//把str传进去,str是一个指针strcpy(str,"helloworld");printf(str);}char*GetMemory2(void){charp[]="helloworld";returnp;}voidTest2(void){char*str=NULL;str=GetMemory2();pr..
分类:
其他好文 时间:
2014-09-29 04:06:27
阅读次数:
268
在之前成功绘制变色的几何图形之后,今天利用Openg ES的可编程管线绘制出第一张纹理。学校时候不知道OpenGL的重要性,怕晦涩的语法,没有跟老师学习OpenGL的环境配置,如今只能利用cocos2dx 2.2.3 配置好的环境学习OpenGL ES。源代码来自《cocos2d-x高级开发教程》,注释是本人的。
void HelloWorld::draw()
{
//opengl世界坐标轴...
分类:
其他好文 时间:
2014-09-29 01:26:27
阅读次数:
1172
使用cocos2dx 3.2 原理都一样
#ifndef __HELLOWORLD_SCENE_H__
#define __HELLOWORLD_SCENE_H__
#include "cocos2d.h"
#include "vector"
using namespace std;
USING_NS_CC;
class PathSprite : public cocos2d::Sprit...
分类:
其他好文 时间:
2014-09-29 01:23:57
阅读次数:
215
1Creating Custom Entity新实体的创建你可以再参考 example 组件,为此你可以看下 example 组件的 entitymodel.xml 文件。你可以按下列步骤创建新的实体:a.在 hot-deploy/practice/ 下创建一个 entitydef 的子目录。b.创...
分类:
其他好文 时间:
2014-09-28 15:56:12
阅读次数:
197