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?
Type: Posts; User: Clane
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?
makes sense . . . thanks
Prelude, I'm sorry I just didn't understand you. Can you dumb it down a bit? :)
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...
Sorry to butt in, but I had a quick (meaningless?) question: what's the difference between
!cin and
cin.fail() ?
feeling like an idiot . . . thanks
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...
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...
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.
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?
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...
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
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...
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.
...
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...
yep, the diget made the difference. Thanx. What's this gcc i? Is it free?
What is it?
Is there a site of book that lists errors and the meanings behind them? I'm using bcc55, comandline. Thanx again
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()...
thanx
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>...