C++ Fuction Overloading Asignment
-
Upload
zainzahid99 -
Category
Documents
-
view
217 -
download
0
Transcript of C++ Fuction Overloading Asignment
-
8/19/2019 C++ Fuction Overloading Asignment
1/2
AIR UNIVERSITY
Faculty of Basic and Applied Sciences
Department of Computer Science & Engineering
Asignment 2
Submitted to : Sir Faisal Fayaz
Name: Zain Zahid
Roll No: 150900
Class/Section : BSCS-II-ADate: 15-03-16
Code:
//============================================================================
// Name : A2.cpp
// Author : Zain Zahid (150900)
//============================================================================
#include
#include
using namespace std;
class CustomCalculator
{private:
char name[30];
static int number;
float f1,result;
public:
void Default(char Name[])
{
strcpy(name,Name);
f1=0.0,result=0.0;
number++;
}
static void GetTotalInstances()
{cout
-
8/19/2019 C++ Fuction Overloading Asignment
2/2
//This Function Show the Result of All Process with Object Name
void ShowSavedResults(float result[],CustomCalculator s[],int lenth)
{
for(int i=0;i