No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
5 Posted Topics
Hi, I'm trying to find a solution to my code and I have general idea what the problem is but I don't know how to solve it please help me. What the code does: What my code does is it should read a dictionary file called dict.txt and store each … | |
In my previous posts, I asked about how to transform a part of a string into an integer. Narue kindly gave me the answer and I've implemented it into my code. Here is my code: [CODE] int main() { string line; string cmd; while (cmd!="quit") { cout << "Command: " … | |
Heres a snippet of my code: [code=cplusplus] int main(); { string cmd1; int cmd2; cout << "Command: " << flush; cin >> cmd1; if (cmd1 == "playlist") { cin >> cmd2; if (cmd2==XXXXXX) { cout << "Illegal command: " << cmd1 << endl; } else cmdPlaylist(cmd2); } return 0; } … | |
I'm writing a program where I have a variety of input commands. Lets say here are my three commands: info playlist # quit info - gives me information quit - terminates the program The problem: playlist # - The command playlist # means I need to cout a number of … ![]() | |
Hi, I'm new to the C++ community hope you guys can give me some guidance. The program I'm making is suppose to read information from a file called music.txt Inside this file there is information about songs in the following format: Bandname, Songname, Duration of the Song, Here a partial … |
The End.