Click here to Skip to main content
15,915,094 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: iThis's gonna kill the server!! Pin
David Cunningham14-Nov-00 8:57
cofounderDavid Cunningham14-Nov-00 8:57 
GeneralRe: iThis's gonna kill the server!! Pin
21-Nov-00 3:24
suss21-Nov-00 3:24 
GeneralNTML/Proxy/WinInet/WinSock Pin
13-Nov-00 20:42
suss13-Nov-00 20:42 
Generalnot really a C++ question Pin
13-Nov-00 15:33
suss13-Nov-00 15:33 
GeneralRe: not really a C++ question Pin
14-Nov-00 5:36
suss14-Nov-00 5:36 
GeneralRe: not really a C++ question Pin
14-Nov-00 13:59
suss14-Nov-00 13:59 
GeneralIE favorites and Visual C++ Pin
13-Nov-00 11:27
suss13-Nov-00 11:27 
Generalc++ killer assignment please help Pin
Jimbo Jones13-Nov-00 9:57
Jimbo Jones13-Nov-00 9:57 
If anyone can help me with this assignment I would greatly appreciate it. At this point I do not know where to start. The assignment can be seen at the following url:

http://www.cise.ufl.edu/class/cgs6305fa00/prog/5/

I have started the Mp3.h header file but I know I am doing things incorrectly. I will post additional code as I complete it this evening. This assignment is due Thursday 11/16/00.
Any help at all would be greatly appreciated.

/*
Mp3

Stores information about an mp3 file: artist name, song title, and
bit rate (an integer greater than 0 that represents kbits / sec).
The constructor accepts all values as parameters
(strings arguments should be passed by reference).
Two public methods must be defined in the class:
1. equals( const Mp3 & ): returns true if the passed argument's
instance variables are equal to the current instance and false
otherwise.
2. display(): displays the Mp3 data in the following form
(using example data):
Artist: Nirvana
Title: Smells Like Teen Spirit
Bit Rate: 128 kbits/sec
This method doesn't return a value.
*/

#ifndef __mp3_h__
#define __mp3_h__
#include <string>

class Mp3
{
public:
//constructor
Mp3(string &Artist, string &Title, string &Bit){
string art = &Artist;
string tit = &Title;
string bit = &Bit;
}

// this is a mess
bool equals(const Mp3&){
if (Mp3& == this.Mp3)
return true
}

void display(){
cout << "Artist: " << this.art << endl;
cout << "Title: " << this.tit << endl;
cout << "Bit Rate: " << this.bit << endl;
}

}
GeneralRe: c++ killer assignment please help Pin
Christian Graus13-Nov-00 13:51
protectorChristian Graus13-Nov-00 13:51 
GeneralRe: c++ killer assignment please help Pin
Jimbo Jones13-Nov-00 18:17
Jimbo Jones13-Nov-00 18:17 
GeneralMulti Platform Compatibility Pin
Arvind Pai13-Nov-00 7:42
Arvind Pai13-Nov-00 7:42 
GeneralRe: Multi Platform Compatibility Pin
Anders Molin13-Nov-00 9:47
professionalAnders Molin13-Nov-00 9:47 
GeneralRe: Multi Platform Compatibility Pin
Erik Funkenbusch13-Nov-00 12:12
Erik Funkenbusch13-Nov-00 12:12 
GeneralRe: Multi Platform Compatibility Pin
Michael Dunn13-Nov-00 15:39
sitebuilderMichael Dunn13-Nov-00 15:39 
GeneralRe: Multi Platform Compatibility Pin
14-Nov-00 5:32
suss14-Nov-00 5:32 
GeneralSmart Pointers Pin
Gerry13-Nov-00 5:44
Gerry13-Nov-00 5:44 
GeneralRe: Smart Pointers Pin
Erik Funkenbusch13-Nov-00 7:24
Erik Funkenbusch13-Nov-00 7:24 
GeneralRe: Smart Pointers Pin
Gerry13-Nov-00 22:39
Gerry13-Nov-00 22:39 
GeneralRe: Smart Pointers Pin
Erik Funkenbusch14-Nov-00 10:37
Erik Funkenbusch14-Nov-00 10:37 
QuestionHow do I determine mouse cursor size? Pin
13-Nov-00 5:37
suss13-Nov-00 5:37 
AnswerRe: How do I determine mouse cursor size? Pin
14-Nov-00 5:19
suss14-Nov-00 5:19 
GeneralProblem to launch WIN NT 'Net Send' programatically Pin
13-Nov-00 4:14
suss13-Nov-00 4:14 
GeneralWeird DAO Problems Pin
13-Nov-00 1:11
suss13-Nov-00 1:11 
GeneralCString in non-MFC application Pin
12-Nov-00 17:58
suss12-Nov-00 17:58 
GeneralRe: CString in non-MFC application Pin
Uwe Keim12-Nov-00 19:23
sitebuilderUwe Keim12-Nov-00 19:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.