Search:

Type: Posts; User: Tride

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    2,705

    Thanks! I didn't even think to look at the...

    Thanks! I didn't even think to look at the braces.

    I have just one more question; my original test expressions for the carrying of pounds and shillings (20 shillings = 1 pound, 12 pounds = 1...
  2. Replies
    5
    Views
    2,705

    Where are all these errors coming from?

    I'm trying to write a program that adds two money amounts in old-style British currency---pounds, shillings, pence---and asks if the user wants to continue. It also adds a pound every 20 shillings,...
  3. Replies
    8
    Views
    4,652

    Thanks guys :). That's much simpler than I was...

    Thanks guys :). That's much simpler than I was expecting.
  4. Replies
    8
    Views
    4,652

    Here is what I already have: #include...

    Here is what I already have:


    #include <iostream>
    using namespace std;


    int main()
    {
    int rows;
  5. Replies
    8
    Views
    4,652

    Making a pyramid of Xs

    My book says to, as an excercise, make a pyramid of Xs 20 lines long, like this:


    X
    XXX
    ...
  6. Replies
    7
    Views
    2,054

    Ahh, that was my problem. Sorry, I just started...

    Ahh, that was my problem. Sorry, I just started programming in C++ after learning C for around half a year.

    Thanks everyone!
  7. Replies
    7
    Views
    2,054

    Oh, well that's good to know :) Do you have...

    Oh, well that's good to know :)

    Do you have any idea how I might change that? I'm using Microsoft Visual C++. I don't know how similar compilers are, but if you're not using the same one do you...
  8. Replies
    7
    Views
    2,054

    One last question, when I delete the .h from...

    One last question, when I delete the .h from iostream I get this error:

    fatal error C1189: #error : "eh.h is only for C++!"

    Why does it do this?
  9. Replies
    7
    Views
    2,054

    Thanks, maybe I'll get a new book. I was hoping...

    Thanks, maybe I'll get a new book. I was hoping this one would be really good because the reviews I've seen for it have said that it's a very good book for learning C++.
  10. Replies
    7
    Views
    2,054

    What is wrong with this code?

    I just started C++ and I bought a few books. One of them, which I'm reading right now, has this code that I'm supposed to type in and learn how it works, but it has 4 errors when I compile:

    ...
  11. Replies
    25
    Views
    5,947

    Man, I wish I saw all of that John Titor stuff...

    Man, I wish I saw all of that John Titor stuff while it was going on. I probably would have been very interested in it.

    Here's the one that gets my vote:

    March 8, 2003

    It wasn't well...
  12. Thread: FoxTrot

    by Tride
    Replies
    8
    Views
    3,450

    FoxTrot

    Check out the today's FoxTrot strip:

    FoxTrot strip

    I just thought it was kind of funny. FoxTrot is a funny comic strip (one of the best comics still going), but sometimes it has jokes that not...
  13. Thread: Dividing and EOF

    by Tride
    Replies
    7
    Views
    2,135

    Hmm... I had the idea that type double variables...

    Hmm... I had the idea that type double variables could have their value displayed using %d if the value was an integer. Thanks for clearing that up!

    And about EOF, is it just an unseen character...
  14. Thread: Dividing and EOF

    by Tride
    Replies
    7
    Views
    2,135

    Changing the "%d"s to "%f"s (the ones that...

    Changing the "%d"s to "%f"s (the ones that properly need to be changed) produces weird results of very large negative numbers. Is there something else in the code that is wrong?
  15. Thread: Dividing and EOF

    by Tride
    Replies
    7
    Views
    2,135

    Dividing and EOF

    This program that I wrote is supposed to get 3 sets of 5 numbers from the user and get the average of each set, but it's not getting the correct average for some numbers.

    Here's the code:

    ...
  16. Replies
    15
    Views
    2,707

    All right. Thanks;)

    All right. Thanks;)
  17. Replies
    15
    Views
    2,707

    But how does making a second getchar() achieve...

    But how does making a second getchar() achieve this? Why doesn't while ((ch = getchar()) != '\n') work the same way? And every input has a '\n' at the end of the line by default, correct? So if I...
  18. Replies
    15
    Views
    2,707

    Sorry, I posted before you edited. I tried...

    Sorry, I posted before you edited.

    I tried opening the first link but it wouldn't. Maybe I'll try with another browser. Thanks!

    EDIT:

    Sorry to edit, but I'm still not quite understanding...
  19. Replies
    15
    Views
    2,707

    Thanks, guys! But Dave, with the code you...

    Thanks, guys!

    But Dave, with the code you gave, it still has one problem that it had before. It tells me that my input is invalid and then it's fine on the second try every time after the first...
  20. Replies
    15
    Views
    2,707

    A few questions...

    I'm having trouble making fail-proof programs with menus and input and such. There are just some things that I've tried to learn and figure out but can't. I figure I should learn what these things...
  21. Replies
    8
    Views
    12,059

    You guys have been a big help. I understand it...

    You guys have been a big help. I understand it now :D. It seems so simple---I can't believe I didn't know how to do it!

    Well, you've all saved me a lot of trouble. Thanks!
  22. Replies
    8
    Views
    12,059

    Using a for loop, correct? Maybe this is...

    Using a for loop, correct?



    Maybe this is my problem; what do I compare the element to to decide that it is the biggest so far?
  23. Replies
    8
    Views
    12,059

    Hmmm.. Both codes contain some things that I'm...

    Hmmm.. Both codes contain some things that I'm not familiar with. I only semi-understand what's going on in them. Maybe I should just go through my book again.

    Thanks anyway, guys! :)
  24. Replies
    8
    Views
    12,059

    Comparing array elements

    The book I'm reading says to make a program that shows the difference between the largest and smallest elements of an array. It sounded easy and I thought I'd be able to do it, but man, I've been...
  25. Replies
    30
    Views
    14,302

    Ooohh, so after I alter two variables from...

    Ooohh, so after I alter two variables from main()----let's call them a and b----in a function and return the result back in the variable "result" again, I'm sending the updated values for both a and...
Results 1 to 25 of 49
Page 1 of 2 1 2