Search:

Type: Posts; User: Clane

Search: Search took 0.00 seconds.

  1. Thread: Array Problem

    by Clane
    Replies
    6
    Views
    1,020

    I'm proud to say: I think I know the answer to...

    I'm proud to say: I think I know the answer to the first question: 5. One less than the number of elements, which is 6, you say?
  2. Replies
    2
    Views
    766

    makes sense . . . thanks

    makes sense . . . thanks
  3. Replies
    7
    Views
    2,607

    Prelude, I'm sorry I just didn't understand you. ...

    Prelude, I'm sorry I just didn't understand you. Can you dumb it down a bit? :)
  4. Replies
    2
    Views
    766

    qs regarding fstream

    I have two quick questions I was hoping someone could answer.

    1) what's the puropse on the ()'s in fin.close() or, as I just saw, cin.fail()? When I tried them without I get "member funciton...
  5. Replies
    7
    Views
    2,607

    Sorry to butt in, but I had a quick...

    Sorry to butt in, but I had a quick (meaningless?) question: what's the difference between
    !cin and
    cin.fail() ?
  6. Replies
    2
    Views
    1,407

    feeling like an idiot . . . thanks

    feeling like an idiot . . . thanks
  7. Replies
    2
    Views
    1,407

    undefined symbol 'fout'

    I'm very unsure about what I'm doing here, the book I'm learning from doesn't give much explaination. Here's the code.



    #include <fstream.h>
    main ()
    {
    char ch;
    char...
  8. Replies
    7
    Views
    2,818

    Well, it ran through car1 fine. At car2 it...

    Well, it ran through car1 fine. At car2 it promts for both make and model on the same line (it did this just twice out of nearly 20 now), then go through the rest of the cars vars (car3, car4) the...
  9. Replies
    7
    Views
    2,818

    I ran the prog again, just to see. It work fine....

    I ran the prog again, just to see. It work fine. I did 9 more times and it failed once more. 8 out of 10. Are compliers funny like this, or am I seeing things. I'm useing bcc55.
  10. Replies
    7
    Views
    2,818

    Thanks for the help! When you say it works...

    Thanks for the help!

    When you say it works fine, how far did you get. There are four inputs, char, char, int, double? It's the second cars record that messes up?
  11. Replies
    7
    Views
    2,818

    getline overload, solution didn't work

    I had this problem last night. (http://www.cprogramming.com/cboard/showthread.php?s=&threadid=12648).

    But what worked then, doesn't seem to work now: on the 2nd cin it skips the getline and...
  12. Replies
    3
    Views
    1,994

    Thanks, it seemed to work. Can I ask the why and...

    Thanks, it seemed to work. Can I ask the why and how? What is ignore and why is there a '\n' in the buffer? Is the '\n' the return? Thanks again :D
  13. Replies
    3
    Views
    1,994

    nu b q: overload and getline

    I'm having trouble with my istream overload (I think it's the istream). At the 2nd cin it doesn't reconize the getline for some reason. Any ideas?

    Also, is this the proper way to 'code tag' (I...
  14. I don't know that much about compilers (I'm a nu...

    I don't know that much about compilers (I'm a nu b myself), but I use and like bcc55; it's has a slow learning curve but is low tech and does what it needs to.

    I think I can help with your q.
    ...
  15. Replies
    3
    Views
    1,002

    I think I figured it out? (It runs anway). But...

    I think I figured it out? (It runs anway). But if I can ask a follow up. Why, when you call a function w/ an array as input, do you not specify an offset, but when you define the function you have...
  16. Replies
    4
    Views
    4,207

    yep, the diget made the difference. Thanx. ...

    yep, the diget made the difference. Thanx. What's this gcc i? Is it free?
  17. Replies
    3
    Views
    1,002

    What's an "unresolved external"

    What is it?

    Is there a site of book that lists errors and the meanings behind them? I'm using bcc55, comandline. Thanx again
  18. Replies
    4
    Views
    4,207

    declaration terminated incorrectly

    I'm learning c++ on my own and was looking for a little pro help. Thanx in advance.

    This is the error:

    Error E2040 c:\mprog\mif.cpp 10: Declaration terminated incorrectly in function
    main()...
  19. Replies
    2
    Views
    920

    thanx

    thanx
  20. Replies
    2
    Views
    920

    need help learning c++ while loop

    My preamble: sorry if my q is mundane.

    I'm leanring form "the complete idiot's guide" (not recomended btw). Here's the code they have you type, it's a runtime array:

    #include <iostream.h>...
Results 1 to 20 of 20