2012-10-21から1日間の記事一覧
If you compile source code on command prompt with CMake and Visual Studio, you should specify some options as follows: cmake -G "NMake Makefiles" . nmake -G option specifies a makefile generator.
Same as a function rand(), functions Random() and setRandom() always generate same random values. Same as rand(), we can change seed of the random values by calling srand(). srand( (unsigned)time(NULL) ); // you need to include ctime or ti…