Type: Posts; User: spideyflygirl90
Search took 0.01 seconds.
January 27th, 2014, 06:39 PM
The 2 parts I have left of this program are the hardest so I may return with more questions (as in I probably will haha)
January 27th, 2014, 06:36 PM
@ 2kaud - Wow....that's a concept to wrap my head around....cerr.....I don't think we've learned that yet since that seemed quite overwhelming. hahaha.
And thanks. That makes sense for the line...
January 27th, 2014, 06:16 PM
Another questions: I need to display my stored license plates on the screen horizontally for the user to select from. I have to do this using a loop - which I get. But how do I force the loop to...
January 27th, 2014, 06:10 PM
Thanks @ 2kaud I'm trying but it sure is a lot to remember!!! ;-P
@ Paul McKenzie - we haven't learned vectors yet. We are just practicing with arrays.
January 27th, 2014, 05:40 PM
I figured out what I was doing wrong was declaring dataCount to 0 in the wrong function. I had it set to 0 within main so when it passed to StoreData, it started as 0, the incremented but when it was...
January 27th, 2014, 05:21 PM
And as per usual 2kaud, I just got it to work. Hahahaha. You must be my muse. Every time I reply to you, I seem to solve my own questions. <3
January 27th, 2014, 05:18 PM
I noticed that. Our teacher is having us practice with forward declarations regardless of the location of our definitions. She said its a good practice to learn in case an employers wants...
January 27th, 2014, 05:12 PM
So would StoreData still be int and return dataCount? Do I then initialize dataCount to 0 within StoreData still?
For the 1 too many, that's why I checked it dataCount < MAX not equal to. Then the...
January 27th, 2014, 04:26 PM
I don't want them to be size MAX. One of the things I'm writing in is an error code so that if more than 1000 entries are in the input file, an error is produced at the 1001st line. So the array is a...
January 27th, 2014, 03:57 PM
dataCount is initialized to 0 within StoreData. That way the arrays will start storing at index 0. Then with each iteration, dataCount is increased by 1. At the end of StoreData, I return the value...
January 27th, 2014, 03:49 PM
I'm working on a program that reads data in line by line from an input file and the sorts it into two arrays, one string, one float. They are parallel arrays managed by a running data count of how...
January 19th, 2014, 10:31 PM
minCharges() returns the variable MIN. I got the whole assignment to work though!!!
January 19th, 2014, 05:44 PM
Here's my code (just the relevant parts - the rest is checked) but I'm obviously doing it wrong since it isn't working. Suggestions on how to fix it?
void displayData (const int& vehicleCount,...
January 19th, 2014, 04:40 PM
I figured that out! Hahahaha. Told you. I seem to be asking, and then figuring it out!! Makes me feel so good!!!
However, can you possibly explain enum types to me? I'm supposed to use them in my...
January 19th, 2014, 03:14 PM
Thanks! I keep posting questions and then figuring out how to get past them. Hahaha. I've gotten as far as writing data to my array but for some reason the loop is running 1 too many times and giving...
January 19th, 2014, 01:30 AM
How do you break a string into different variables?
I got openFile to work. And I've gotten getLine figured out. And my loop! Yay.
However, my getLine is putting the whole line into a string....
January 18th, 2014, 09:14 PM
I changed it to void openFile() since it doesn't return a value really, just a statement. Does that work? I could add inside the if(!inFile) someway to close the program?
Also, I put openfile()...
January 18th, 2014, 05:22 PM
I think my issue is with how I'm passing the variable from main to openFile but I'm not sure.
January 18th, 2014, 05:12 PM
I'm stuck again, maybe someone can help ;-P
I wrote my openFile function and tested it, worked just fine! I put a cout statement to verify that it worked. It displayed perfectly. Then I moved it...
January 18th, 2014, 04:11 PM
So I figured out the major reason why I was struggling so much! My computer has a bug! Ahh!! I've been needing a new laptop for school, picked it up yesterday, ran the codes I have...
January 16th, 2014, 01:39 AM
So I'm trying to do it piece by piece, starting with opening the file. However, it's giving me an error that says "Cannot find or open the PDB file".
Here's the very basic code I have so far. I'm...
January 15th, 2014, 11:01 PM
Oh, I don't want you guys to write it for me! Then I'll never learn and I'll forever be stuck!!! I'm working on it now and will post some code when I get stuck...hahaha. As in, if I finish writing...
January 14th, 2014, 07:38 PM
The assignment is teaching us to use arrays. Haha. :eek: Hahaha.
I'm trying to get an idea of where to start before I get home from work and actually start. Haha
January 14th, 2014, 06:36 PM
Those make a lot of sense!
I had figured out the vehicleClass == 'A' one. But I didn't know about the else if or the int&.
My new assignment that I'll be starting on tonight (when I'm not on a...
January 14th, 2014, 03:38 PM
Nope. Just the next assignment. This week we are learning arrays. I've already gotten my assignment and am ready to start working on it. *deep breath* More time to work on it this week! That way I...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.