Store Inventory Need Help

//This is my Implementation File , I have tried everything and I still receiving some errors the purpose of the program is to managed a simple inventory for a retail store and to output the retail price

//These are my errors
1.IntelliSense: no instance of overloaded function "strcpy_s" matches the argument list
argument types are: (char [25], char)

2.IntelliSense: no instance of overloaded function "Product::Product" matches the specified type

3.error C1004: unexpected end-of-file found

4.error C2511: 'Product::Product(int,char,int,double,double,int)' : overloaded member function not found in 'Product'


5.IntelliSense: identifier "InitQuantityofProduct" is undefined

6.IntelliSense: expected a ';'


7. IntelliSense: identifier "Separator" is undefined




#include "product.h"


Product::Product()
{
ProductIdNumber = 0;
ManufacturesIdNumber = 0;
QuantityofProduct = 0;
Description[24] = '\0';
Price = 0;
Pecentage = 0;
}
Product::Product (int InitProductIdNumber , char InitDescription, int InitManufacturesIdNumber, double InitPrice, double InitPecentage , int InitQuanityofProduct)
{





{
ProductIdNumber = InitProductIdNumber;
ManufacturesIdNumber = InitManufacturesIdNumber;
QuantityofProduct = InitQuantityofProduct;
strcpy_s(Description, InitDescription );
Price = InitPrice;
Pecentage = InitPecentage;

}

int Product::GetProductIdNumber() const
{
return (ProductIdNumber);
}

int Product::GetManufacturesIdNumber() const
{
return (ManufacturesIdNumber);

}

int Product::GetQuantityofProduct() const
{
return (QuantityofProduct);
}

char* Product::GetDescription() const
{
return (Description);
}

double Product::GetPrice() const
{
return (Price);
}
double Product::GetPecentage() const
{
return(Pecentage);
}

void Product::Display()const
{
char Separator[50] = "____________________________________________";

cout <<endl << Separator << endl << endl;
cout <<setw(36) <<setfill (' ')<< "Office Supply Product Information"<<endl;
cout<< Separator;
cout <<endl<<endl<<setw (15) <<setfill (' ') <<"Identifcation Number" <<endl
<<setw(12) <<setfill (' ') <<"Description"<< endl
<<setw(12) <<setfill (' ') <<"Manufcatures"<<endl
<<setw(12) <<setfill (' ') <<"Wholesale Price"<<endl
<<setw (12) <<setfill (' ') <<"Markup Percentage"<<endl
<<setw (12) <<setfill (' ') <<"Quantity in Stock"
<<endl << Separator <<endl << Separator <<endl;



cout<<right;
cout<<endl <<setw(9) <<setfill (' ') <<GetProductIdNumber ();
cout<<endl <<setw(9) <<setfill (' ') <<GetDescription();
cout <<endl <<setw(9) <<setfill (' ')<<GetManufacturesIdNumber ();
cout <<fixed <<showpoint <<setprecision (2)
<<setw(12) <<setfill (' ')<<"$" <<GetPrice ()
cout <<fixed <<showpoint <<setprecision(2)
<<setw(9) <<setfill (' ')<<GetPecentage()
<<endl;
cout<< Separator <<endl;
}
Topic archived. No new replies allowed.