摘要:《算法导论》上看到的伪代码好久没写c代码来,我写的c代码#include <iostream>#include <ctime>#include <cstdlib>using namespace std;int* randomize(int n);int main(int argc, char** argv){ srand((unsigned)time(0)); int* s = randomize(100); for (int i=0; i<100; i++) { cout << s[i] << ","; } 阅读全文
posted @ 2013-01-24 11:11 涵曦 阅读 (184) 评论 (0) 编辑