Subscribe
Add to Technorati Favourites
Add to del.icio.us
Thursday, August 20, 2009

。Minix 3。

Posted by KennyXX


神啊!救救我吧!
在家弄MINIX 3弄了老半天,最后才给我找到怎么用MINIX 来
写c programming.
做法跟在Linux的Termination里一样。
完全没有GUI,全部都是字来的。
一样,打 ls 就是看你所在地里有什么Folder.
打 cd .. 就是 back. 打cd xx (xx就是些Folder的名字) 就是进入该Folder.

哈哈!现在你就要create 一个新的空文件, 例如:test.c
你就得打vi test.c (老师教过了,但我忘了,找到我半死才找回)。
然后现在你看到的就是在text file 的 editor里面了。

erm..现在有点乱了,因为我一直按不到字,一按#,他就ti-ti声响了!
弄了半天后,发现要按o先(不懂为什么).
然后就可以开始打字了。

切忌,千万不要打错字,不然很难搽掉!按'BACKSPACE'的话,他只是跑去后面,
字没有搽掉,按'DELETE'的话,错的字就变成x.还是没搽掉。
这问题还没解决..学习当中!


写好了后,就按一次'ESC' 然后打 ':wq' for save and quit the file.
':w' for save the file.
':q!: for quti without saving the file.

这就是我打好的code.很simple罢了。
#include

void main(){
printf("hello!!.\n");
}

然后':wq:.


接下来就可以打'cc -o test test.c' 来 compile file 了。

swt !!! what !! 什么叉喔!!
"test.c", line 4: (warning) 'main' old-fashioned function defination

walao!! 写code还有过时的喔!!
这个minix 3的programmer也是很有心思啊,还可以写个old-fashioned的东西出来.
杀!我欣赏你!

0 comments: