|
發表於 2011-6-30 07:07:58
|
顯示全部樓層
有B语言而已,C语言的前身就是B,C是B的作者在B的基础上开发,但同时也取代了B
这是B语言源代码之一:- /* The following function will print a non-negative number, n, to
- the base b, where 2<=b<=10, This routine uses the fact that
- in the ASCII character set, the digits 0 to 9 have sequential
- code values. */
- printn(n,b) {
- extrn putchar;
- auto a;
- if(a=n/b) /* assignment, not test for equality */
- printn(a, b); /* recursive */
- putchar(n%b + '0');
- }
複製代碼
当然别问我上面写的是什么,我也不知道。。我的领域是WEB应用不是软件 |
|