Search:
Type: Posts; User: cloud125
Search:
Search took 0.02 seconds.
-
August 25th, 2014, 09:15 AM
The file has the different attributes of a Movie, such as title, director, year and I just need to sort it alphabetically by its title. How would I do that?
-
August 25th, 2014, 08:39 AM
I am reading a file and storing the data (all strings) into a vector. How would I sort this alphabetically?
-
August 10th, 2014, 08:59 AM
Thank you! I did not know they had that, but I should have known since they have everything over the internet.
-
August 10th, 2014, 08:59 AM
oh, thank you.
I was also wondering, do classes always have to be in a header file or can it be in the .cpp file? I thought it always had to be in the header and you just call it from your main file.
-
August 9th, 2014, 07:41 PM
Sorry, a lot of times I am not on a computer that has my Visual Studio program on it so I am writing code out on a notepad. Thank you for the partial class definition,
-
August 6th, 2014, 07:04 AM
Would this work for my grid class?
#ifndef _Grid_
#define _Grid_
class Grid
{
vector<vector<int> > matrix;
int width,height;
-
August 5th, 2014, 07:26 PM
-
July 12th, 2014, 08:21 AM
How would I make a loop that would simultaneously compute both the max and min of a vector?
-
Okay thank you, that helps a lot ^^
When I put enum as the type, it says it is not allowed
cout << "Enter movie rating: ";
enum myRating;
cin >> myRating;
myMovie.setRating(myRating);
-
Sorry, I am kind of a beginner with programming so I am a little confused with how to write methods and such.
-
Okay so I am stuck again....
Is this part of the code supposed to go under the main function? Or do I just call it somehow in the main?
void promptForMovie(Movie& myMovie)
{
cout << "Enter...
-
Thanks so much! This helps a lot. I will work on it right now using this information; if I have any more questions I'll be sure to ask. ^^
-
Okay, thank you for your help!
-
Is there a way to edit my post or delete it so I can fix it?
-
Hello, I was working on my C++ homework and was wondering if anyone could help me with part of it. I wrote the .cpp and .h files but now I am stuck. Here is what I am supposed to do:
1. Write a...
|
Click Here to Expand Forum to Full Width
|