Click here to Skip to main content
15,887,350 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: operator () overloading. Pin
BadKarma23-Feb-06 3:44
BadKarma23-Feb-06 3:44 
GeneralRe: operator () overloading. Pin
9ine23-Feb-06 5:26
9ine23-Feb-06 5:26 
GeneralRe: operator () overloading. Pin
BadKarma23-Feb-06 8:29
BadKarma23-Feb-06 8:29 
QuestionCrystal Reports 11 with visual Studio .NET Pin
Irfan Shahid23-Feb-06 1:04
Irfan Shahid23-Feb-06 1:04 
QuestionRe: operator () overloading. Pin
David Crow23-Feb-06 3:41
David Crow23-Feb-06 3:41 
AnswerRe: operator () overloading. Pin
9ine23-Feb-06 5:18
9ine23-Feb-06 5:18 
GeneralRe: operator () overloading. Pin
David Crow23-Feb-06 5:45
David Crow23-Feb-06 5:45 
GeneralRe: operator () overloading. Pin
9ine23-Feb-06 22:59
9ine23-Feb-06 22:59 
--------------------------------------------
vec<char> c;
c[0] = 'z';
char q = c[0];
vec<float> f;
--------------------------------------------

I need to code this situation:
long double lA;
vec<char> c;
vec<short> s;
lA = c[0]; //casted from char to long double in operator
lA += 5.0;
c[0] = lA; //casted from long double to char in operator
lA = s[0]; //casted from short to long double in operator
lA += 10.0;
s[0] = lA; //casted from long double to short in operator
//same for vec<float>,vec<double>

The value outside the vec class (that is extracted from it) is always the same type long double but when we save it back it must be converted to class type (char,short,...)


9ine

-- modified at 5:00 Friday 24th February, 2006
GeneralRe: operator () overloading. Pin
David Crow24-Feb-06 2:42
David Crow24-Feb-06 2:42 
GeneralRe: operator () overloading. Pin
9ine24-Feb-06 3:00
9ine24-Feb-06 3:00 
QuestionRe: operator () overloading. Pin
David Crow24-Feb-06 3:08
David Crow24-Feb-06 3:08 
AnswerRe: operator () overloading. Pin
9ine25-Feb-06 1:08
9ine25-Feb-06 1:08 
GeneralRe: operator () overloading. Pin
jhwurmbach23-Feb-06 22:20
jhwurmbach23-Feb-06 22:20 
GeneralRe: operator () overloading. Pin
9ine23-Feb-06 22:53
9ine23-Feb-06 22:53 
GeneralRe: operator () overloading. Pin
jhwurmbach23-Feb-06 23:24
jhwurmbach23-Feb-06 23:24 
AnswerRe: operator () overloading. Pin
Wim Engberts23-Feb-06 5:47
Wim Engberts23-Feb-06 5:47 
JokeRe: operator () overloading. Pin
jhwurmbach23-Feb-06 22:21
jhwurmbach23-Feb-06 22:21 
QuestionStarting a process in the background no console Pin
theprinc22-Feb-06 23:00
theprinc22-Feb-06 23:00 
AnswerRe: Starting a process in the background no console Pin
Nibu babu thomas22-Feb-06 23:04
Nibu babu thomas22-Feb-06 23:04 
GeneralRe: Starting a process in the background no console Pin
theprinc22-Feb-06 23:21
theprinc22-Feb-06 23:21 
AnswerRe: Starting a process in the background no console Pin
David Crow23-Feb-06 3:44
David Crow23-Feb-06 3:44 
QuestionFormat a CString value from longdate to shortdate Pin
Kalthoff22-Feb-06 22:38
Kalthoff22-Feb-06 22:38 
AnswerRe: Format a CString value from longdate to shortdate Pin
toxcct22-Feb-06 22:43
toxcct22-Feb-06 22:43 
GeneralRe: Format a CString value from longdate to shortdate Pin
Kalthoff22-Feb-06 23:45
Kalthoff22-Feb-06 23:45 
AnswerRe: Format a CString value from longdate to shortdate Pin
James R. Twine23-Feb-06 2:49
James R. Twine23-Feb-06 2:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.