7 Topics

Member Avatar for
Member Avatar for Prathyaksha

This is my Line2D.h #include <iostream> #include <fstream> #include <string> #include <sstream> #include <vector> #include <cstdlib> #include <cmath> #include <algorithm> #include "Point2D.h" using namespace std; class Line2D { private: Point2D pt1; Point2D pt2; protected: double length; // Set function void setLength(); public: // Constructor Line2D(); Line2D(Point2D pt1, Point2D pt2); // …

Member Avatar for rubberman
0
394
Member Avatar for AssertNull

I've been debating where to put this. Maybe the Community Center. Feel free to move if necessary. I'm sticking it in Software Development because it has to deal with Software Development, but it's more of a general topic involving different levels of expertise and familiarity, what one's "lane" is, and …

Member Avatar for AssertNull
0
236
Member Avatar for santoshedunum
Member Avatar for JamesCherrill
0
100
Member Avatar for Gribouillis

This snippet is easy: it defines an immutable wrapper around a sequence type (list, deque, etc) which allows a class, function or module to expose a read only version of a sequence to the outer world. A constant wrapper around mapping types could also be defined in a similar manner.

Member Avatar for Gribouillis
2
573
Member Avatar for emcyroyale

Basically this program uses an abstract class which 3 other classes extends to so that in the end an overridden toString() method will print out how many pages must be read for each class. Okay, well this program is for a class, but I am kinda of stuck because my …

Member Avatar for quuba
0
202
Member Avatar for sharkpit

this is the summary of program and i only include the addition of matrices my problem would be the variables in Addition class cannot read variables from the other class i need to know how to fix that the error would be : The name 'a' does not exist in …

Member Avatar for Mitja Bonca
0
122
Member Avatar for Lusiphur

As suggested by Duki in [URL="http://www.daniweb.com/forums/thread298488.html"]this thread[/URL] I figured I'd compile all the workable examples and explanations here towards the question of "Why do we use get/ set to change properties?" [QUOTE=pritesh2010]Properties provide the opportunity to protect a field in a class by reading and writing to it through the …

2
500

The End.