When I opened the header file, I went to File>Move "MersenneTwister.h" to this project, or whatever it said. In solution explorer, under header files, the file is showing up, so it is definately part...
Type: Posts; User: mero24
When I opened the header file, I went to File>Move "MersenneTwister.h" to this project, or whatever it said. In solution explorer, under header files, the file is showing up, so it is definately part...
Hi. I am trying to use Mersenne twister in my program. (Using Microsoft VS 2003.) I transferred the header file into my project, #included it, but it's coming up with this error:
fatal error C1803:...
It could be equal to 1000, but the max is 9999.
Edit: It should be maxed at 9999.
#include <iostream>
#include <string>
#include <time.h>
#include <cstdlib>
#include <ctime>
I am trying to make a simple validator to make sure that if the user enters anything besides a four digit number, (ANY four digit number) the program returns an error message. How can I do this...
I guess I can search for something...I bet this has been posted before.
Sorry all. :)
Is there a specific function/statement/whatever that generates a random four digit number in Microsoft Visual C++?
(Don't make me use arrays!) :rolleyes:
Ok, I got it to work...the argument I put in the function had no point, therefore it was invalid.
The error i am getting is this: "function does not take zero arguments."
No, that really didn't help me much...
I just need to know how to use a function inside of main().
I am having more troubles in my future reference program...
I have this function:
char User_Choice;
void userDecision(char User_Choice) {
std::cout << "Do you like the number 3? Yes=Y,...
Thanks, andy.
I am trying to work this switch statement into my future reference program.
char playSong;
std::cout << "Which is best? La, Da, or This..." << endl;
std::cin >> playSong;
...
I will post it later...after trying to use this new advice I messed up the whole file...
Actually, I am having a typedef error..."warning C4091: 'typedef ' : ignored on left of 'my_soundtrack' when no variable is declared"
Nevermind...It's working now, thanks all.
When I move it outside of main() I get all kinds of errors, though.
Ahh...this function is inside the main() function...should I move it out?
Hi. This code is a portion of a whole program, and I get the error message stated in the thread title...but I can't seem to fix it, no matter what I do.
Here is the Code:
char User_Choice;...