Search Results

Showing results 1 to 8 of 8
Search took 0.01 seconds.
Search: Posts Made By: n8makar
Forum: C++ Apr 30th, 2008
Replies: 2
Views: 430
Posted By n8makar
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
Posted By n8makar
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
Posted By n8makar
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
Posted By n8makar
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
Posted By n8makar
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
Posted By n8makar
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
Posted By n8makar
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
Posted By n8makar
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...
Showing results 1 to 8 of 8

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC