Forum: C++ Apr 30th, 2008 |
| Replies: 2 Views: 430 wow yes exactly. i should have known about the .id after students[n], but you helped me out big time. if we're keeping track thats twice now. |
Forum: C++ Apr 30th, 2008 |
| Replies: 2 Views: 430 ok short and sweet hopefully. suppose you have a struct like so
struct SomeName
{
string id;
}
and you read data from a file into the id then you want to search for a specific id... |
Forum: C++ Apr 14th, 2008 |
| Replies: 10 Views: 2,429 ok since im a beginner this was explained to me in a different way that was easier to understand. not bashing anyone else's solution, but this fix requires only one line of code. im just posting this... |
Forum: C++ Apr 14th, 2008 |
| Replies: 10 Views: 2,429 looks good thank you for your time and quick replies! also learned a little something about cin.getline... |
Forum: C++ Apr 14th, 2008 |
| Replies: 10 Views: 2,429 This is the text file. ignore spelling mistakes as I had to make all product names one word.
Chuck's Computer Company
A123
Case
59.99
B234
Motherboard
149.99
C345 |
Forum: C++ Apr 14th, 2008 |
| Replies: 10 Views: 2,429 tried it. first it wouldnt let me convert from string to char. also even if it did i think cin.getline would ask the user to input data which isnt what we want. it needs to be read from the data file. |
Forum: C++ Apr 14th, 2008 |
| Replies: 10 Views: 2,429 ok that helps but i need more than just the product name. i need the product codes and prices to be put into arrays as well thus making 3 arrays. |
Forum: C++ Apr 13th, 2008 |
| Replies: 10 Views: 2,429 sort of a noob as i have been doing c++ for only a couple months now. my problem is that i am using a function to pass data from a file into an array then into a .out file. the function im using to... |