`
vyloy
  • 浏览: 78648 次
  • 性别: Icon_minigender_1
  • 来自: 佛山
社区版块
存档分类
最新评论
文章列表
void main() { mixed a = [1]; a += [2]; a += ["hello"]; a += [[1,2]]; a -= [2]; a -= ["hello"]; a -= [[1,2]]; debug_message("%O",a); } 这段lpc代码会输出什么呢? 我们先从字节码分析吧。 引用 …… 002c: short_string "hello" 002e: aggregate ...
void main() { debug_message("%O","hello" == "hello"); debug_message("%O",[1,2]==[1,2]); } 这段lpc代码会输出什么呢? 我们先从字节码分析吧。 引用 STRINGS:    0: a.c    1: %O    2: hello 0000: push string 1, string 2, string 2 0005: == 0006: debug_message 2 0009: pus ...
一次性智能城市项目很少从长远来看。要建立一个将在未来几十年内发展并支持其公民的城市,您必须确定真正重要的城市并创建支持该愿景的架构框架。 想象一下这个场景,20年后:你醒来,打开窗户,俯瞰你的城市。我猜它 ...
如今,互联网时代飞速发展,官网得运营的好坏,对一个公司的发展的影响力越来越大,SEO的优化是运营必须关注的问题。拓洲网络这里给大家分享一些对网站开发、优化和SEO优化的技巧,今天我们首先讲讲关键词优化问题。许多的网站搜索排名迟迟不能上去,每天更新内容,进行网站的优化,但效果并不明显,这就有可能是在建站初期,并没有确定网站关键词。就有可能因关键词选择不当问题,就造成网站搜索排名迟迟不能上去。 我们首先是要定位网站的主题。在建设好的网站的上线前,我们需要定位网站的主题,就如本站是为用户提供软件APP开发等服务,那我们的关键词就有很多,如软件开发、APP开发和小程序开发等。 关键词选择的注意事项 ...
http://www.ics.uci.edu/~eppstein/161/960227.html T:banananobano P:nano          0  1  2  3  4  5  6  7  8  9 10 11       T: b  a  n  a  n  a  n  o  b  a  n  o     i=0: X     i=1:    X     i=2:       n  a  n  X     i=3:          X     i=4:             n  a  n  o     i=5:                X     i=6:  ...
https://github.com/gmarik/Vundle.vim https://github.com/fatih/vim-go
mutable 允许变量在const成员方法中被修改 volatile 和java中的volatile相似

计数排序

    博客分类:
  • C++
void sortCharArray(){ char* c="534519"; int result[10]={0}; int i=0; char t=c[i]; while(t!='\0'){ ++result[t-'0']; t=c[++i]; } char* r=new char[++i];//分配多一个char储存null terminal memset(r,'\0',i);//初始化数据 i=0; for(int j=0;j!=10;++j){ int &temp=result[j]; ...
In top press Shift-H which turns on Threads. The man page for top says:        -H : Threads toggle             Starts top with the last remembered 'H' state reversed.  When             this  toggle is On, all individual threads will be displayed.             Otherwise, top displays a  summation  of  ...
参考文章: http://stackoverflow.com/questions/11354518/golang-application-auto-build-versioning 昨天在查询怎么生成一个小体积的golang程序的时候,无意中发现这个文章. 对于固定的代码,及固定的golang版本,下面的命令总是得到一模一样的程序 go build 有时候需要为每个编译都打上标记,不然真的很乱啊 演示用的golang代码 package main var _VERSION_ = "unknown" func main() { print(& ...
http://cr.openjdk.java.net/~simonis/webrevs/8024854.v3/test/java/lang/ProcessBuilder/Basic.java.sdiff.html static class UnicodeOS { public static boolean is() { return is; } private static final String osName = System.getProperty("os.name"); private static final boolean is = // M ...
引用 Thanks to kind and patient help from golang-nuts, recipe is following: 1) One needs to compile Go compiler for different target platforms and architectures. This is done from src folder in go installation. In my case go installation is located in /usr/local/go thus to compile a compiler you need ...
今天同事问Unity3D上用JavaScript和C#之间,各有什么优缺点? 想了下,觉得除了语法上的不同外,C#会有更多更好的编译检查,只是代码写得更繁琐。个人也比较喜欢在Unity3D上用C#。但Javascript的热更新这个优点,在Unity3D上有没有呢?于是写了个脚本,打成Android的包,再解压后,发现虽然写的是Javascript,但照样是生成了C#的字节码。所以Javascript做得到的,用C#都可以做到,而且还多了编译检查,可以写代码写得更舒服。 作者:翁志艺
这是一篇post,由mudos最初创作者发表,简述了mudos名称的由来,以及区别于其他lpmud driver的不同之处。原文参见http://www.graphcomp.com/info/mud/mudos/History_MudOS.html (just so you know ahead of time, this is wayfarer@portals|tmi|overdrive, so this post will obviously be a bit biased towards MudOS. I'll do my best to be objective here though, ...
还有什么比LPMUD的鼻祖Lars Pensj的一段自述更能表现LPMUD的起源? 原文参见http://genesis.cs.chalmers.se/history_frame.html I played some Abermud (to wizardhood once), and a little tinymud. I liked the idea of a multi-user anonymous game very much, but found that Abermud was too difficult to extend while Tinymud had too little ...
Global site tag (gtag.js) - Google Analytics