- 博客(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
124
亂數產生器
r(n)= (r(n-1)*a + b) mod c第 n個亂數,等於 前一個亂數,乘以 a, 加上 b,mod ca= 7^5b= 0c= (2^31) - 1產生 20億個亂數,需時約 350秒平均每秒,大約可以產生 600萬個亂數。[code]/*for rnd1(), rnd2(), irnd(), init_rnd() ...
2007-12-25 16:45:20
409
計算時間間隔的 副程式
只能 精確到 16ms[code]/*for time1(), time2() */// ----------------------------------------------#include #include #include #include #include #include // -------------------...
2007-12-25 15:33:18
148
兩個 常用的 副程式
void skip(int no);void pause(void);[code]/*for skip(), pause() */#include #include #include #include // ----------------------------------------------// skip(-3);voi...
2007-12-25 11:40:33
121
VC++ 6.0 第一砲
我是 初學,請多多包涵[code]/*LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _mainDebug/VC1225.exe : fatal error LNK1120: 1 unresolved externalsE:\VC1225\VC1225.CPP(15) : warning...
2007-12-25 09:46:39
100
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人