P
Paul
James Kanze said:Victor said:On 3/3/2011 10:26 AM, crea wrote:
Victor Bazarov wrote:
On 3/3/2011 9:27 AM, crea wrote:
Alf P. Steinbach /Usenet wrote:
* crea, on 03.03.2011 13:43:
Lets say we are programming a wheather data analysing and display
program (of course using VC!).
We have already classes:
- CChart, which draws wheather data
- CWheather, which contains wheather data and all the functions
regarding analysing data. So this data (it contains the data) can
be passed to CChart to draw it.
Presumably[1] the "C" signifies "Constant"?
No, it means "class" (CWheather = "class Wheather"). They are 2
normal classes...
Alf was teasing you (see his footnote). Microsoft's habit of
putting 'C' in front of all their classes is surely contagious,
isn't it? V
yes, They use C. But I think its quite logical... C like class...
This was you know its a class type.
There is nothing logical in that. It's called "monkey see, monkey
do". Do you use other "Hungarian notation" elements as well? Do youyes, its good to know what type it is. I think many professionals use
this.
Actually, it's an almost certain indicator of an amateur. The
type is Chart, or Weather, or whatever.
with integers its "n".this happens very rarely in practical applications. Dont remember when
happened to me.
I don't think I've ever worked on an application where it didn't
happen. Applications live.
Eh?
int n_x;
You cannot change the type of n_x .
Pah you know he means they represent decimals.Neither is decimal, at least not on any platform I know. (Most
platforms today, except mainframes, use binary. IBM mainframes
use hexadecimal, and Unisys mainframes octal. The IBM 1401 did
use decimal, but I don't think that there was ever a C++
compiler for it.)