Popular posts from this blog
Assembly Program Code For Brick Breaker Game
By
Zain Aftab
-
;-------------------------------------------------------; ;-------------------------------------------------------; ;-------------------------------------------------------; ;-------------------------------------------------------; ;-------------------------------------------------------; .MODEL SMALL .STACK 100H .DATA BAR_OLD_COLSTRT DW 50 BAR_OLD_COLEND DW 80 MOV_TO DW 0 BAR_ROW1 DW 181 BAR_ROW3 DW 184 BAR_NEW_COLSTRT DW 50 BAR_NEW_COLEND DW 80 FLAG_ML DW 0 FLAG_MR DW 0 ;-------------------------------------------- ;----------- VARIABLES FOR BALLS ------------ ;-------------------------------------------- ;-------------------------------------------- ;------------------ BALL1 ------------------- ;-------------------------------------------- BALL1_RSTR DW 80 ;RSTR = ROW START BALL1_CSTR DW 88
Polynomial C++ Class
By
Zain Aftab
-
//=============================== //Term.h //=============================== #ifndef TERM_H #define TERM_H #include"Polynomial.h" class Polynomial ; //forward declaration class Term { friend Polynomial; private: int exp; float coef; }; #endif //===============================//Polynomial.h //=============================== #ifndef POLYNOMIAL_H #define POLYNOMIAL_H #include"Term.h" #include<iostream> #include<math.h> using namespace std; class Polynomial:public Term { private: Term* termArray; int size; public: // make appropriate constructors. Polynomial(); Polynomial(float *coef,int *exp, int size); //functions other than constructors. friend istream & operator>>(istream& is , Polynomial& X); friend ostream & operator<<(ostream& os , /*const*/ Polynomial& X); Polynomial operator+( /*const */Polynomial
Comments
Post a Comment