Cheng's profile火焰山PhotosBlogListsMore Tools Help
Photo 1 of 4

HTML

Web Site Counter
7/5/2009

罗迪克同学阿

  本想写点什么. 但觉得无话可说
5/9/2009

[Objective-C] HOWTO: Compiling Objective-C with gcc

from http://ubuntuforums.org/showthread.php?t=1064045

1. Install the GNU Objective-C Runtime.
Code:
sudo apt-get install gobjc
2. Write some source. Here's a very small example.
Code:
// hello.m
#import <objc/Object.h>
#import <stdio.h>

@interface Number: Object
{
@public
int number;

}

- (void)printNum;

@end

@implementation Number: Object


- (void)printNum
{
printf("%d\n", number);
}

@end

int main(void)
{
Number *myNumber = [Number new]; // equal to [[Number alloc] init]

myNumber->number = 6;

[myNumber printNum];

return 0;
}
As you see, there are some differences with Apple Objective-C. The base object class is called Object, not NSObject. The Object class's interface is at objc/Object.h, as you see it #import'ed.

3. Compile:
Code:
gcc -o hello hello.m -Wall -lobjc
4/21/2009

google o3D

  3D真正到web了


3/5/2009

safari 4 ~cool

我一直yy的把3D搬到web browser
看来正在变成现实.

--
Yours sincerely  Yang, Cheng
2/18/2009

失眠了

本以为跑步回来能睡个好觉
结果反而怎么都睡不着..Baring teeth
2/13/2009

老美开始抓ICC

我bs的后路也不安全了..

http://news.in.msn.com/international/article.aspx?cp-documentid=1814237

Washington: An ongoing US federal probe into an H-1B visa fraud has led to the arrest of 11 people in seven states and the indictment of IT services firm Vision Systems Group founded by an Indian-American.

文中只说了Indian and Pakistani computer engineers and programmers.似乎这次还没有同胞倒霉
2/5/2009

又要citizenship

身在异乡为异客,就是这个意思吧.


--
Yours sincerely  Yang, Cheng

2/1/2009

庆祝纳达尔拿下09澳网男单冠军

钢铁的意志~

--
Yours sincerely  Yang, Cheng
1/31/2009

女网大满冠居然好意思要求奖金一样..


纯粹就是骗钱. 有功夫折腾女权前还是好好练练技术吧..
--
Yours sincerely  Yang, Cheng
1/19/2009

超强的翻译, No Z turn

向原创者致敬.

--
Yours sincerely  Yang, Cheng
12/3/2008

space 又改版了

google reader的更新出奇的多.. 原来是订阅的space的相册都被算成新的了

界面显得很水晶.. 有待习惯.
11/19/2008

收到了微软的拒信

一共被5个人面过, 面玩第二人就感觉基本黄了

周5面试, 周2被拒, 拒的还挺快的,还避开了我周一的生日 赞一下.
  1. integer to english, e.g: 111 one hundred eleven. 英语就是麻烦啊. 汉语多简单
  2. copy a linked list with 2 pointers struct node {int val; node* next; node* other}; next points to next and other points to arbitrary node in the list or NULL.  copy the list in linear time with constant extra spaces. 没想出来
  3. max substring
  4. evaluate an arithmitic expression like 10+5-2

9/27/2008

基本掌握了上旋发球, 大力平击还是不稳定

争取每周打4小时以上.
9/24/2008

show case

无聊 一群人拿着一样的纸, 越来越觉得master没意义. 特别是我们系的...
 
by 
by 
by 

过程
雁过留毛

Please wait...
Sorry, the comment you entered is too long. Please shorten it.
You didn't enter anything. Please try again.
Sorry, we can't add your comment right now. Please try again later.
To add a comment, you need permission from your parent. Ask for permission
Your parent has turned off comments.
Sorry, we can't delete your comment right now. Please try again later.
You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
Complete the security check below to finish leaving your comment.
The characters you type in the security check must match the characters in the picture or audio.
длdгεαwrote:
好久没向你提问题了...
过年了,不知道你有没回国?新年大顺啦~
Jan. 24
Cheng Yangwrote:
to盆:
休斯敦到我们这而很远的了..谢谢关心,
Sept. 14
pennwrote:
听说休斯顿刮台风啦 你那还凑合不?
Sept. 14
虔虔 wrote:
为什么主页不能留言呢!~尴尬
Aug. 2

UFL

I am coming

ZJU