摘要:
打印1~1000.(不使用循环,不使用条件语句)1 使用函数指针退出 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--voidyesprint(inti);voidnoprint(inti);typedefvoid(*fnPtr)(int);fnPtrdispatch[]={yesprint,noprint};voidyesprint(inti){printf("%d\n",i);dispatch[i/1000](i+1);}voidnopri 阅读全文