Search:

Type: Posts; User: muran_pling

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    4,887

    thanks for this. i will have a look at it! :)

    thanks for this. i will have a look at it! :)
  2. Replies
    3
    Views
    4,887

    its ok guys, i got it working :) stack...

    its ok guys, i got it working :)




    stack <int> unionS(stack<int>& S, stack<int>& T)
    {
    stack <int> unionStack;
    stack <int> unionStackFinal;
    stack <int> unionStackFinal2;
  3. Replies
    4
    Views
    1,696

    ahh yes.. i understand now... thanks alot anon :)

    ahh yes.. i understand now... thanks alot anon :)
  4. Replies
    4
    Views
    1,696

    did u mean something like this: ...

    did u mean something like this:


    p.push_back('(');
    p.push_back(')');
    //THESE ARE ARE IN SEQUENCE

    p.push_back('{');
    p.push_back('}');
    //THESE ARE ARE IN SEQUENCE
  5. Replies
    3
    Views
    4,887

    Need help with stacks

    hi guys, im trying to complete a function where you have stack S and stack T. Both integer type and both have 4 elements in each stack which the elements are in ascending order (Top to bottom (eg..1...
  6. Replies
    4
    Views
    1,696

    Question i dont understand

    Hi guys, i recieved a question for homework. I dont really understand what its asking me to do.

    Question:


    bool balanced(vector <char> p)
    // Precondition: p[0]...p[n-1] contains n...
  7. Replies
    11
    Views
    1,414

    yeah i wrote those messages before i saw your...

    yeah i wrote those messages before i saw your hints... thanks man :)
  8. Replies
    11
    Views
    1,414

    hehehe hrmmmm, this will take forever to figure...

    hehehe hrmmmm, this will take forever to figure out .. ill get there! thanks heaps anyway man. appreciate the help :)

    Edit: Ohhhh the exclamation mark must go in front of the equals sign ? and i...
  9. Replies
    11
    Views
    1,414

    Ok well, its actually only removing the last...

    Ok well, its actually only removing the last string. Its not removing the unwanted string.
  10. Replies
    11
    Views
    1,414

    this is what i came up with.. my code doesnt seem...

    this is what i came up with.. my code doesnt seem to be working now..



    void remove_string(stack <string>& string_stack, string unwanted)
    {
    stack <string> temp_stack;

    string...
  11. Replies
    11
    Views
    1,414

    what if it asks to use stack container?

    what if it asks to use stack container?
  12. Replies
    11
    Views
    1,414

    Stacks Question

    Hi guys, just wondering how i would remove an unwanted string element from a string stack.

    Example:




    void remove_string(stack <string>& string_stack, string unwanted);

    int main()
  13. Replies
    6
    Views
    7,848

    ok thanks mate! much appreciated :)

    ok thanks mate! much appreciated :)
  14. Replies
    6
    Views
    7,848

    thanks spoon, it was those small changes that...

    thanks spoon, it was those small changes that made it work!!
    appreciate it :)
  15. Replies
    6
    Views
    7,848

    can u do it without the DO while loop ?

    can u do it without the DO while loop ?
  16. Replies
    6
    Views
    7,848

    counting steps

    ok heres my problem..
    1. if x is even, divide x by 2.
    2. if x is odd, multiply x by 3 and add 1, and count 1 step.
    3. Repeat steps 1 and 2 until you arrive at the number 1.

    For example, if we...
  17. Replies
    10
    Views
    2,693

    ok all done! thanks guys :)

    ok all done! thanks guys :)
  18. Replies
    10
    Views
    2,693

    thanks mate! much clearer! :) will try it

    thanks mate! much clearer! :) will try it
  19. Replies
    10
    Views
    2,693

    wait so are you saying.. find out what for...

    wait so are you saying.. find out what for example... theres 29, 6 and 1981..
    get the gcd for 29 and 6... which will equal 1...

    then get the gcd for 1 and 1981 ?
  20. Replies
    10
    Views
    2,693

    this sounds about right!

    this sounds about right!
  21. Replies
    10
    Views
    2,693

    thanks guys!!! i will try it out :) and let u...

    thanks guys!!! i will try it out :) and let u know how i go
  22. Replies
    10
    Views
    2,693

    Greatest Common Divisor.....

    Hi guys, just wondering.. how would i work out how to get the greatest common devisor of THREE numbers...not two..but THREE numbers.

    for example...

    the greatest common devisors for number 29...
  23. Replies
    23
    Views
    4,347

    char number[] = "11110000"; ?? was that ment to...

    char number[] = "11110000"; ??
    was that ment to replace int number[] = {1,1,1,1,0,0,0,0}; array ?
  24. Replies
    23
    Views
    4,347

    is there a way to get rid of the commers in the...

    is there a way to get rid of the commers in the array so for example... 1,1,1,1,0,0,0,0 is inputed as 11110000 and still reads 4 1s ? i tryed it without commers and it reads there is only 1 1's in...
  25. Replies
    23
    Views
    4,347

    thanks for that. i will try work with it!!! much...

    thanks for that. i will try work with it!!! much appreciated
Results 1 to 25 of 33
Page 1 of 2 1 2