Search:

Type: Posts; User: Velocity

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    13,914

    Brilliant, that did the trick. Thanks. :)

    Brilliant, that did the trick. Thanks. :)
  2. Replies
    11
    Views
    13,914

    I tried that as soon as I posted last, and it...

    I tried that as soon as I posted last, and it gave me:

    ERROR: Empty stack.

    ERROR: Empty stack.

    Answer: 2
  3. Replies
    11
    Views
    13,914

    I don't get what you mean. Are you meaning to...

    I don't get what you mean. Are you meaning to put:

    top = pop(top, operand1);
    top = pop(top, operand2);

    in the "else" part of the main function?
  4. Replies
    11
    Views
    13,914

    #include #include using...

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

    class node
    {
    public:
    float number;
    node *next;
    };
  5. Replies
    11
    Views
    13,914

    However even with making those fixes it still...

    However even with making those fixes it still doesn't advance once I hit Enter/Return...
  6. Replies
    11
    Views
    13,914

    I always forget those breaks... :D

    I always forget those breaks... :D
  7. Replies
    11
    Views
    13,914

    Postfix Calculator Using Stack, Linked Lists

    Hello,

    I've got a program I'm doing that does +, -, *, and / operations on positive integers in a postfix notation. The code I have at the moment compiles, but upon running the code, it stalls...
  8. Replies
    17
    Views
    18,076

    Single quotations are primarily used when...

    Single quotations are primarily used when denoting a single character:


    char letter = 'e' ;

    Double quotations are used with strings and output statements:


    string MyString = "This is a...
  9. Replies
    10
    Views
    1,942

    The problem in that case is that after dequeuing...

    The problem in that case is that after dequeuing just one item, it skips the second item in the queue.

    a b c d

    Dequeue a

    Queue Status: c d

    Dequeue b
  10. Replies
    10
    Views
    1,942

    It seems like if I had a hybrid of my first and...

    It seems like if I had a hybrid of my first and second code sets (the ones with outputs given) it'd be close to being correct. Of course, the problem with the display function is still nagging. How...
  11. Replies
    10
    Views
    1,942

    Touche. :D I'm not even going to pretend I'm a...

    Touche. :D I'm not even going to pretend I'm a great programmer... I'm going off hunches when I do these first off and then I have to go back and fix them once I see they're incorrect... and...
  12. Replies
    10
    Views
    1,942

    When I put the in/out check after the in++ and...

    When I put the in/out check after the in++ and out++, it only exacerbates the problem:


    #include <iostream>
    using namespace std ;

    void enqueue (char queue[], int &in, int &full)
    {
    char...
  13. Replies
    10
    Views
    1,942

    Again, it's supposed to be a circular queue. Once...

    Again, it's supposed to be a circular queue. Once it reaches the end of the queue (in this case, when in/n = 4), it should revert back to 0... I'm not quite sure what you're getting at here. The...
  14. Replies
    10
    Views
    1,942

    Question regarding queue codes

    Hey all. I'm making a simple program to enqueue and dequeue a string of characters as entered into an array. I'm fairly close to completing the code but I've run into a bit of difficulty. After a...
  15. Replies
    10
    Views
    2,957

    Does anybody else have advice on this? I would...

    Does anybody else have advice on this? I would like to do the assignment with arrays to really get the concept of it down but at this point I'm considering just scrapping it and using strings (which...
  16. Replies
    10
    Views
    2,957

    Well I've made a few changes and still am getting...

    Well I've made a few changes and still am getting an error upon output. Here's the current code along with a sample output.


    #include <iostream>
    using namespace std;
    int main()
    {
    char...
  17. Replies
    10
    Views
    2,957

    Well, look at the sample output above. I put in...

    Well, look at the sample output above. I put in 2021 and 395 ... and the result is R@?
  18. Replies
    10
    Views
    2,957

    Sure... at this point in my class (well, for this...

    Sure... at this point in my class (well, for this homework assignment, really), it's an emphasis on arrays. What the assignment is asking is for us to do the following...

    1) Read in up to a...
  19. Replies
    10
    Views
    2,957

    Hey guys, back again with a question

    All right, so this time I have an assignment to add two positive integers up to 20 digits long and output the two entries along with the sum. To this point I've been able to get the program to...
  20. Replies
    31
    Views
    4,002

    It finally works. Thanks a TON for your help,...

    It finally works. Thanks a TON for your help, tabstop, I really appreciate it.
  21. Replies
    31
    Views
    4,002

    Yeah that would make sense, wouldn't it... haha....

    Yeah that would make sense, wouldn't it... haha. Man, don't know how I missed that. Since it prevents the \n thing does this mean that the cin.ignore is unnecessary toward the end now or should I...
  22. Replies
    31
    Views
    4,002

    Ohh, the check goes BEFORE the input...

    Ohh, the check goes BEFORE the input...
  23. Replies
    31
    Views
    4,002

    Okay, what you're saying makes sense. My only...

    Okay, what you're saying makes sense. My only problem now is just where does the "if" statement actually go. You said it has to go within the while loop, but now it's to where I have to let all the...
  24. Replies
    31
    Views
    4,002

    I'm not quite sure what you mean by a flag in...

    I'm not quite sure what you mean by a flag in this sense. I've got the if expression there, and I'm assuming I'll have to use "else" to get the conversion actually done (enclosing the "for" section...
  25. Replies
    31
    Views
    4,002

    I know that would involve a break somewhere in...

    I know that would involve a break somewhere in the loop, but I'm not sure how to go from there...?


    ...

    while (entry[place] != '\n')
    {
    place ++;
    cin >>...
Results 1 to 25 of 36
Page 1 of 2 1 2