- 博客(5)
- 收藏
- 关注
VC 提供的 "hello, world!\n"
[code="java"][/code] // VC0116.cpp : Defines the entry point for the console application. // #include "stdafx.h" int main(int argc, char* argv[]) { printf("Hello World! at 07:36\n"); re...
2008-01-16 07:40:23 112
亂數產生器
r(n)= (r(n-1)*a + b) mod c 第 n個亂數,等於 前一個亂數,乘以 a, 加上 b, mod c a= 7^5 b= 0 c= (2^31) - 1 產生 20億個亂數,需時約 350秒 平均每秒,大約可以產生 600萬個亂數。 [code] /* for rnd1(), rnd2(), irnd(), init_rnd() ...
2007-12-25 16:45:20 356
計算時間間隔的 副程式
只能 精確到 16ms [code] /* for time1(), time2() */ // ---------------------------------------------- #include #include #include #include #include #include // -------------------...
2007-12-25 15:33:18 126
兩個 常用的 副程式
void skip(int no); void pause(void); [code] /* for skip(), pause() */ #include #include #include #include // ---------------------------------------------- // skip(-3); voi...
2007-12-25 11:40:33 107
VC++ 6.0 第一砲
我是 初學,請多多包涵 [code] /* LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/VC1225.exe : fatal error LNK1120: 1 unresolved externals E:\VC1225\VC1225.CPP(15) : warning...
2007-12-25 09:46:39 88
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人