`
fantasybei
  • 浏览: 36527 次
  • 性别: Icon_minigender_1
  • 来自: 农村进沪务工人员
社区版块
存档分类
最新评论
文章列表
#include <stdio.h> void reverse(char s[]); main(){ int len; char line[1000]; while((len = getline(line, 1000)) > 0){ reverse(line); printf("%s\n", line); } } void reverse(char s[]){ int i = 0, j = 0; int temp; while(s[j] != '\0') j++ ...

Item 66

public class StopThread { private static boolean stopRequest; public static void main(String[] args) throws InterruptedException { Thread thread = new Thread(new Runnable(){ public void run(){ int i = 0; while(!stopRequest) ...
祝自己生日快乐,2年多了,时间真的可以改变很多东西,许的愿是真心的希望你幸福
西班牙人的理论坚持认为地球上只有一个固定数量的价值,因此通往积累财富的道路就是学会从土地或者人身上更有效的榨取财富,而英国人的理论认为价值可以通过天才和技术创造出来。因此英国就产生了工业革命,而西班牙人就转动起了车轮,开始开拓疆土和剥削在新大陆的印第安人.
apt-get install openssl libssl-dev cd rubySourceRoot/ext/openssl ruby extconf.rb make sudo make install nnd,编译安装的ruby1.9,当require 'net/https'的时候出现no such file to load -- openssl,搜索了半天才找到上面的办法...
''.split(',').length 返回的竟然是一个长度为1的数组。 - -!
However, if a static member of that class(class which has no access specifier) is public, the client programmer can still access that static member even though they cannot create an object of that class 做了下验证,如下: package test.aaa; class A { public static String TEST = "A"; } pack ...
重新开始再看一遍Thinking In Java,今天发现一点小问题. Chapter 4 They(static variable) are initialized only when the first Table object is created (or the first static access occurs) 其实这个描述应该不是非常的正确,比如我用Table.class,没有用到上面描述的两种情况,也会让类被加载,从而初始化静态变量,更准确地说是应该类被加载的时候初始化static的变量或者block。 结合这个贴子:http://www.iteye.com/topic/20 ...
第一次那么奢侈..明天去看燕姿...嘿嘿  (*^__^*)
ubuntu下从源码安装ruby: ./Configure –prefix=/usr/local/ruby-1.9.1 sudo make && make install 装完后试试gem list --local出现no such file to load -- zlib (LoadError) ,sudo apt-get install zlib1g-dev即可,然后到源码目录的ext/zlib下 ruby extconf.rb make && sudo make install。 plus:安装ubuntu下cpu温度查看软件 sudo apt-get i ...
前几天从源码安装了ruby1.9, 但是在irb下,按向上的方向键,显示不出历史命令,而是[[A,弄了好几天,弄死我了,论坛里好像也搜索到一个帖子也是这个问题, http://www.iteye.com/post/220404 不过我install了curses也没用, nnd,弄了一晚上终于找到了一个解决办法,记录一下 http://discuss.joyent.com/viewtopic.php?id=23239 引用 wget ftp://ftp.gnu.org/gnu/readline/readline-5.2.tar.gz gunzip readline-5.2.tar.gz ...
     俺不会说什么煽情的话,只是喜欢听燕姿的歌,很纯,能引起共鸣,不知道je爱听燕姿歌的闷骚男多不,嘿嘿。
JavaScript:The World's Most Misunderstood Programming Language Douglas Crockford www.crockford.com JavaScript, aka Mocha, aka LiveScript, aka JScript, aka ECMAScript, is one of the world's most popular programming languages. Virtually every personal computer in the world has at least one JavaScript ...
    第四章主要讲的是Function.         function有四种调用的pattern,重点是要注意这4种pattern下,function中的this分别指什么。         1.the method invocation pattern             function被作为某个对象的property时,我们把这个function叫做method,当在那个对象上调用这个method时,function内部的this就是指的这个对象,例子如下: var myObject = { value: 1, increment: function(in ...
    突然感觉自己还太不成熟了,有时候也会经常想起自己还有很多责任,但是没几天又抛到一边了。     现在就写下来吧,希望能提醒下自己。     今年的计划:     1.把国家助学贷款还了.     2.帮家里还部分债.     3.努力学技术,找一个更好的公司
Global site tag (gtag.js) - Google Analytics