No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
5 Posted Topics
Re: For my freshmen programming students I recommend one book which I find to be quite helpful for most. If he sticks with it to the end he shall find a thorough grounding in computer software and hardware: "Code: The Hidden Language of Computer Hardware and Software" by Charles Petzold It's … | |
Re: You should revisit definition the of rand() and srand() functions, both will give you non-repeating random numbers from 0 to your system's 'randmax' value. Just use the standard form of rand() with a 'shift' and 'scale factor',eg: number = shift value + rand() % scaling factor; // shift value = … | |
Re: [QUOTE=Little E;283656]Can anyone help me write a program that will print a sentence using 5 different words that are in 6 different array's based on a random number generated by the computer. Right now my code will print 5 sentences using each elimate from each array, but it doesn't pick … | |
Re: Sir, Let me suggest that your 'Menu' itself should be a function, say , Menu(), for these lines: cout <<"Sudoku\n\n\n"<<endl; cout <<"1. How to\n\n"<<endl; cout <<"2. Sudoku generator\n\n"<<endl; cout <<"3. Play!\n\n"<<endl; cout <<"4. Exit\n\n"<<endl; This avoids the issue of using any 'goto and labels.' As for calling main() within your … | |
The System () function call is in C and C++, but I can't seem to find out just exactly what it can do. I use "C++ How to Program", by Deitel and Deitel, but it's silent on the application of System(). Any help would be appreciated. Thanks. PS: For example, … |
The End.