Search:

Type: Posts; User: quizkiwi

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    1,312

    I think I will go with the indicator, thank you

    I think I will go with the indicator, thank you
  2. Replies
    7
    Views
    1,312

    Node type with a choice of elements

    So I want to create a tree with two different types of nodes, the internal nodes have pointers to further nodes, while the leaf nodes simply have elements. In Pascal, you can define a type with one...
  3. Replies
    9
    Views
    1,531

    I fixed this by implementing what the Unix Man...

    I fixed this by implementing what the Unix Man pages states never to do and that is use low-order bits...


    random_integer = 1 + (rand()%50)

    This gives a random number between 1 and 50. Since...
  4. Replies
    9
    Views
    1,531

    Well, I understand what you are saying, and I did...

    Well, I understand what you are saying, and I did some tests to confirm it, but is there a solution to having a random number within a certain range? And why does this work perfectly on XP with...
  5. Replies
    9
    Views
    1,531

    I did check on that and RAND_MAX is the same, in...

    I did check on that and RAND_MAX is the same, in fact, this formula is specified in the Unix Man pages.
  6. Replies
    9
    Views
    1,531

    Random Numbers Unix

    Does anyone know why this compiles but does not work on a Unix platform using g++? It works fine on a windows box using vs2005. It seems the random number is always 0. Thanks for your help!

    ...
  7. Replies
    3
    Views
    1,952

    Thank You for the reply. Basically the way it...

    Thank You for the reply.

    Basically the way it is set up now, the box does not actually compute times as far as i can tell (i did not design it) I believe, it simply has the first seat to create...
  8. Replies
    3
    Views
    1,952

    Serial Port/Quiz Program

    Hey Guys,

    I am fairly new at this, so I am going to put some stuff out there and see if anyone can lead me in the right direction.

    Right now I have a "quiz box" which interfaces with three sets...
  9. Replies
    2
    Views
    823

    Browser Warnings

    I have a bunch of browser warnings and I am not sure if I should ignore them or if they actually are warning about improper logic, take a look...


    vector <int> tlist;
    for(int i = 0; i <...
  10. Replies
    6
    Views
    1,113

    I believe your problem is that you cannot use...

    I believe your problem is that you cannot use 'small' as a variable name. Try small1 or smalll or something else. The other problem that I see is that after verifying that the sum is bad, it just...
  11. Replies
    2
    Views
    878

    isn't that cute...thank you very much

    isn't that cute...thank you very much
  12. Replies
    2
    Views
    878

    for_each algorithm

    Okay, so my homework assignment states, "use the for_each algorithm to print out the contents of a vector of doubles using the display function." Here is what i have, but how do i get it to send a...
  13. or in simpler terms... This... cout

    or in simpler terms...

    This...


    cout << "1. Addition"; <<endl;

    Becomes...
  14. Replies
    7
    Views
    1,199

    i have successfully accomplished what i wanted...

    i have successfully accomplished what i wanted with a combination of my original code and also ILoveVectors example. The program removes punctuation and lowers everything to lowercase. This is the...
  15. Replies
    15
    Views
    1,716

    Here is something to try...not sure if it works...

    Here is something to try...not sure if it works exactly, i am not at my compiler.


    #include<iostream>
    #include<string>
    using namespace std;

    int main ()
    {
    string intput; //declares...
  16. Replies
    7
    Views
    1,199

    Oh i see... you used my original code and it...

    Oh i see... you used my original code and it worked?

    As far as syntax, I was able to get that to work the way i wanted it to with text i typed in. The problem came up with this particular text...
  17. Replies
    7
    Views
    1,199

    make sure to look closely though...it does not...

    make sure to look closely though...it does not remove the hyphens as it should
  18. Replies
    7
    Views
    1,199

    Thanks for your help. This compiles fine without...

    Thanks for your help. This compiles fine without runtime errors, however, it simply ignores the characters giving trouble to isalpha(), namely the hyphen.

    I am going to attach a portion of the...
  19. Replies
    7
    Views
    1,199

    read from file, runtime error

    I am trying to read in from a file, remove numbers, and hyphens so that the output of this...



    would be...



    I believe this code works the way I expect it too...however, i copied a large...
  20. Replies
    1
    Views
    5,641

    passing an ofstream by reference

    This may be a silly question, but here goes. Is there any way I can pass cout as a parameter(by reference of course) into a function that takes an ofstream& as opposed to an ostream&? Basically I...
  21. Replies
    7
    Views
    1,709

    thanks everyone, removing the const worked. I am...

    thanks everyone, removing the const worked. I am not using a friend decleration because this is for a class and i must demonstrate that i understand what the teacher taught :). sorry codeplug for...
  22. Replies
    7
    Views
    1,709

    That would be the case if I wasn't making the...

    That would be the case if I wasn't making the input() function a member method and just passing the istream to the overloaded function. Thanks for looking
  23. Replies
    7
    Views
    1,709

    overloaded >> operator problem

    I am trying to overload an the >> operator for my new Money class. It compiles fine, however when it gets to the point where i use the operator it, seems to loop the input method for a while and...
  24. Replies
    4
    Views
    17,165

    thanks, i could not figure out how to assign that...

    thanks, i could not figure out how to assign that vector in the main.
  25. Replies
    4
    Views
    17,165

    return vector function

    How do i call that function so that i can use the vector in main?

    thanks!


    vector<string> function();

    int main()
    {
    //what goes here?
Results 1 to 25 of 46
Page 1 of 2 1 2