#include <iostream>
#include "Lab05_01.h"
// Function Definitions
int my_add(int a, int b)
{
return a+b;
}
int my_mult(int a, int b)
{
return a*b;
}
// Class Definition
char *Person::getName()
{
return name;
}
void Person::setName(char *inName)
{
strcpy(name, inName);
}
This is the code for the Header file of the static libraries project
1 2 3 4 5 6 7 8 9 10 11 12 13
int my_mult(int a, int b);
int my_add(int a, int b);
// Class Declaration
class Person
{
private:
char name[80];
public:
char *getName();
void setName(char *inName);
};
This is my code for the source file of the test project linked to the static libraries project