[ create a new paste ] login | about

Link: http://codepad.org/VqfDmlk7    [ raw code | output | fork ]

aisflat439 - C++, pasted on Mar 27:
#ifndef BOOK_H
#define BOOK_H

#include <string>
using namespace std;

class Book
{
    private: 
    protected: 
        string _title;
        string _author;
        int _ISBN;
        double _price;   
                          
    public:

        Book();
        Book(string, string/*, int/*, double*/);
        void setTitle(string);
        void setAuthor(string);
        void setISBN(int);
        void setPrice(double);
        string getTitle();
        string getAuthor();
        int getISBN();
        double getPrice();
        
};

#endif


Output:
1
Line 34: error: "/*" within comment


Create a new paste based on this one


Comments: