Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ please C++ C++ please and thank you. I already have: ________________________________________________ #ifndef Cd_hpp #define Cd_hpp #include #include #include complex.h #include #include string.h #define MAX_STR_LEN

C++ pleaseimage text in transcribed image text in transcribed

C++ C++ please and thank you.

I already have:

________________________________________________

#ifndef Cd_hpp #define Cd_hpp

#include #include #include "complex.h" #include #include "string.h" #define MAX_STR_LEN 1000 using namespace std; class Cd { public: string artist; string title; int year; string genre; string fan; string imageUrl; //Methods Cd(); void print(); void set(string artist_in, string title_in, int year_in, string genre_in, string fan_in); int getCommmaIndex( string str, int index[]); //void printWidthLsabel(string label); int parseCSV(string csvStr, string values[]); void setFromCSV(string csv); };

#endif /* Cd_hpp */

__________________________________________________________________

#include "Cd.hpp"

Cd::Cd() { }

void Cd::print()

{ cout

} int Cd::parseCSV(string csvStr, string values[]) { int i, i1,i2,len; int index[MAX_STR_LEN]; int numCommas; numCommas=getCommmaIndex(csvStr, index); for(i=0;i

_________________________________________

main part

____________________________________

int main() {

Cd myCd; string str, values[100]; int numValues; myCd.set("David jk", "Ziggy sed", 1999, " Classic Rock ", "Zack Zikko"); myCd.print(); str = "one,two,three,four,five"; numValues= myCd.parseCSV(str, values); for (int i=0; i

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke

1st Edition

0130086509, 978-0130086501

More Books

Students also viewed these Databases questions

Question

Differentiate 3sin(9x+2x)

Answered: 1 week ago

Question

3. Existing organizations and programs constrain behavior.

Answered: 1 week ago