Search:

Type: Posts; User: 2fastwrx

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    1,835

    ah, so i cant just do this in a different...

    ah, so i cant just do this in a different function, i have to modify the original class in order to access the private data
  2. Replies
    6
    Views
    1,835

    so...have a function that automatically pops off...

    so...have a function that automatically pops off every node, then as it does, display it? i know youd have to set up a loop:


    while node does not equal NULL
    pop node
    print node
    ...
  3. Replies
    6
    Views
    1,835

    accessing classes and reversing inputs

    yes, i know the latter topic is common. but theres a twist: a predefined class.

    i have a predefined class for a stack that brings up a menu where you can push, pop, and peek. now i have to use...
  4. Replies
    9
    Views
    1,338

    that worked great. now to validate a float: i was...

    that worked great. now to validate a float: i was thinking of a counter for the decimal points, in order to make sure more than one is not entered (not neccessary, but extra). i was gonna use a for...
  5. Replies
    9
    Views
    1,338

    wow. the code you use is a bit above me right...

    wow. the code you use is a bit above me right now, but i appreciate the effort
    eventually i found out that my logic operators were wrong, and all of my or's shoulda been and's...now i gotta figure...
  6. Replies
    9
    Views
    1,338

    grr!...now it doesnt work... as soon as i...

    grr!...now it doesnt work...
    as soon as i changed

    if (noErrors = true)
    to

    if (noErrors == true)

    it spits out 'invalid input'....i dont get it...i corrected the '=', tested it and...
  7. Replies
    9
    Views
    1,338

    *slaps forehead* ok, now....if you put in more...

    *slaps forehead*

    ok, now....if you put in more than 9 characters, it loops infinitely with "invalid input", is there a way to write an if statement to stop this?
  8. Replies
    9
    Views
    1,338

    integer validation skips errors?

    well heres the code:



    #include <iostream>
    #include <stdlib.h>
    using namespace std;


    bool ReadInt(int *value);
  9. Replies
    8
    Views
    1,445

    yup that fixed it...guess i had the code wrong...

    yup that fixed it...guess i had the code wrong cause the array wont multiply right, so i just did this

    int total = randreturn * randreturn2;
    if (answer == total)
    cout <<...
  10. Replies
    8
    Views
    1,445

    oh i see...create an integer then assign the...

    oh i see...create an integer then assign the function return to it, then instead of displaying the return, display the new integer. blasted function calls...

    thanks!

    edit: well it compiles now,...
  11. Replies
    8
    Views
    1,445

    ok here goes... #include ...

    ok here goes...


    #include <iostream>
    #include <cmath>
    #include<cstdlib>
    #include<ctime>

    using namespace std;
  12. Replies
    8
    Views
    1,445

    assigning rand outputs to variables

    well...im trying to assign the outputs generated by rand () to a variable so that i can multiply them later. unfortunately, i keep getting 'intializing' errors regardless of whether i try to just...
  13. Replies
    8
    Views
    1,916

    gotcha...so my custom functions arent executed...

    gotcha...so my custom functions arent executed until main tells them to. and without the function call written correctly (using the name and arguments...must drill that into brain) the functions are...
  14. Replies
    8
    Views
    1,916

    ohhh, ok...tricky stuff... so when i used 'if...

    ohhh, ok...tricky stuff...

    so when i used 'if (remainder > 0)' it was just returning the result of the modulus, but instead i needed to call the actual function name.

    alright, well thanks for...
  15. Replies
    8
    Views
    1,916

    arg...function calls

    im having problems with my function calls and relevant operators...ive been working on this for hours but i cant get the result of my function to be recognized by the main function. this is where im...
Results 1 to 15 of 15