No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
How can I get a numerical value from a string? I am using the command "getline" to store a string. I want the user to be able to enter "assign 8 strength", right now they have to type "assign strength" over and over until they run out of points. Is … |
|
I'm trying to make a deck of cards; I want it to keep track of the cards that have been drawn. Will this code delete the card that is displayed? [code] void Deck::draw_card() { int random_card = (rand() % cards.size()) - 1; cout << "\n" << cards[random_card].name << "\n"; cards.erase(cards.begin() … |
|
I decieded to make a program that translates a phrase in english to "1337" or "elite". I have searched this website and others and can't find an answer to the error I'm getting. Thanks for any help :). Btw I'm using Bloodshed Dev C++, not sure if that matters. [code] … |