Search:

Type: Posts; User: mero24

Search: Search took 0.01 seconds; generated 29 minute(s) ago.

  1. Replies
    4
    Views
    2,621

    When I opened the header file, I went to...

    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...
  2. Replies
    4
    Views
    2,621

    Using Mersenne Twister in C++ programs/Including a header file

    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:...
  3. Replies
    4
    Views
    856

    It could be equal to 1000, but the max is 9999....

    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>
  4. Replies
    4
    Views
    856

    Help: if(UserNumber != a number!)...

    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...
  5. Replies
    5
    Views
    1,923

    I guess I can search for something...I bet this...

    I guess I can search for something...I bet this has been posted before.
    Sorry all. :)
  6. Replies
    5
    Views
    1,923

    Code for random number generator???

    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:
  7. Replies
    6
    Views
    4,405

    Ok, I got it to work...the argument I put in the...

    Ok, I got it to work...the argument I put in the function had no point, therefore it was invalid.
  8. Replies
    6
    Views
    4,405

    The error i am getting is this: "function does...

    The error i am getting is this: "function does not take zero arguments."
  9. Replies
    6
    Views
    4,405

    No, that really didn't help me much... I just...

    No, that really didn't help me much...
    I just need to know how to use a function inside of main().
  10. Replies
    6
    Views
    4,405

    calling a function inside 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,...
  11. Thanks, andy.

    Thanks, andy.
  12. switch statement issues...(undeclared identifiers)

    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;
    ...
  13. I will post it later...after trying to use this...

    I will post it later...after trying to use this new advice I messed up the whole file...
  14. Actually, I am having a typedef error..."warning...

    Actually, I am having a typedef error..."warning C4091: 'typedef ' : ignored on left of 'my_soundtrack' when no variable is declared"
  15. Nevermind...It's working now, thanks all.

    Nevermind...It's working now, thanks all.
  16. When I move it outside of main() I get all kinds...

    When I move it outside of main() I get all kinds of errors, though.
  17. Ahh...this function is inside the main()...

    Ahh...this function is inside the main() function...should I move it out?
  18. Local Function Definitions are illegal...very evil problem

    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;...
Results 1 to 18 of 18