Hi I have a file (.txt) I need my program to read that stores information like this:

Thomas 2000
Bill 3000
Jake 3500

At which point I need to have the user input via cin, name of the person ie: Jake and have them input another cin(double) which will multiply with the corresponding number of the name selected.

I have no trouble accessing the file and throwing it into a string vector. Now the problem is I don't know how I can have the user cin identify with a name in the vector. And after which to call the names corresponding number for multiplication.

Recommended Answers

All 3 Replies

bump -- help please :(

Don't bump your threads. It's rude.

Let's see what you've got worked out so far. Show your code here and many will be willing to help.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.