/lab12_ex2.cpp
/Qwyla Foutch <[email protected]>
/test program creates and test Point objects
#include <iostream>
#include "Point.h"
using namespace std;
int main()
cfw_
Point a, b( 4, 8 ),
/Point.cpp
/Qwyla Foutch <[email protected]>
/Definitions of constructors, overloaded operators that are listed in Point.h file
#include <iostream>
#include "Point.h"
using namespace std;
Poin
#include <iostream>
#include "Fraction.h"
using namespace std;
int main(void)
cfw_
Fraction x(16,27);
Fraction y(21,25);
Fraction z1,z2,z3,z4;
z1 = x + y ;
z2 = x - y ;
z3 = x * y ;
z4 = x /
/lab5.cpp
/Qwyla Foutch <[email protected]>
/*This program will peirform calculations similar to a calculator by asking user what type of mathematical mode to perform, obtaining 2 inputs and p
/pa2.cpp
/Qwyla Foutch, [email protected]
/Write a program that asks user for their favorite number. After the number has been provided print message telling user it is smaller or larger than
2. Given the following declaration:
int num;
int *ptr1;
int *ptr2;
double *ptr3;
Mark the following statements as valid or invalid. If a statement is invalid,
explain why. (2, 3)
a. ptr1 = ptr2;
b. nu