I wrote this little code today in standard c++. It built in visual studio 2008, but the console window is not display the information. Why???
I'm using an intel based quadcore i7 processor.Code:#include "stdafx.h" #include <iostream> using std::cerr; using std::cout; using std::cerr; using std::endl; int engalgomod(int number_of_genes, int & state); int main(array<System::String ^> ^args) { // Console::WriteLine(L"Hello World"); int state = 0; state = 1; int error = 0; do { error = engalgomod(5,state); cerr << error << " loop control variable buffer overun finite resoure negative conotation error. Bogus!" << endl; cout << "Genetic code: " << state << endl; } while (error = -1); // the mod function never returns a negative number return 0; } int engalgomod(int number_of_genes, int & state) { // state of egine correlates to gene while (true) { state = state % number_of_genes + 1;//the entirity of the engine } int exception; return exception; }



LinkBack URL
About LinkBacks



