谁能介绍下B语言示例呢?
谁能介绍下B语言示例呢?
B语言示例编辑下面是来自KenThompson的B语言用户手册的例子:/*Thefollowingfunctionwillprintanon-negativenumber,n,tothebaseb,where2b10,ThisroutineusesthefactthatintheANSCIIcharacterset,thedigits0to9havesequentialcodevalues.*/printn(n,b){extrnputchar;autoa;if(an/b)/*assignment,nottestforequality*/printn(a,b);/*recursive*/putchar(n%b+0);}