冒泡算法中的小陷阱
摘要:今天写了个冒泡算法从小到大排序的小程序。编译之后DOS界面出现了,但是会发生如下错误:原部分代码如下:View Code int main(void){ sport a[12]={{"001",13.6},{"002",14.8},{"010",12.0}, {"011",12.7},{"023",15.6},{"025",13.4}, {"031",14.9},{"036",12.6},{"037",13.4},
阅读全文
posted @ 2011-09-08 19:39