No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
[CODE]while (y==1) { float discount,addcost; pricetopay=calpricetopay(ty,pricetopay,addcost,discount); cout<<endl; cout<<endl; cout<<"\t\t\tTOY TOY Shoppie"<<endl; cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"<<endl; cout<<endl; cout<<"Name of item:"<<ty.name<<endl; cout<<"Price of item:"<<ty.price<<endl; cout<<"Made in:"<<ty.madein<<endl; cout<<"Manufactured Date:"<<ty.date.d<<"/"<<ty.date.m<<"/"<<ty.date.y<<endl; cout<<"Price to be paid: "<<pricetopay<<endl; cout<<"Do you want to proceed with another transaction?"<<endl; cout<<"If yes, Please type '1'. If no, please press 2 to quit."<<endl; cin>>y; }[/CODE] … |
|
The highlighted part below is where the function located...Is there any problem with the input? [CODE]#include <iostream> #include <iomanip> using namespace std; // function declaration for price to pay. [COLOR="Red"]float caldiscountprice(float[],int[],float[]); [/COLOR] // function declaration for discounted price. [COLOR="Red"]float calpriceafterdiscount(float[],int[],float[]); [/COLOR]//function declaration for Price after Discount int main() { int … |
|
I am a newbie to c++... Today I was handed a assignment on "array"...While working on this...I've met plenty of errors... I wonder where did my steps gone wrong... May anyone out there borrow me a helping hand?? [CODE]#include <iostream> #include <iomanip> using namespace std; float calpricetopay(int[5],float[5]); // function declaration … |
|
Hi fellow forumers...I am new to this forum and programming. Regarding the above topic..Is there and code that solves this sort of question? My question:A program that input 10 integers and find the largest value. Thanks very much! |