Click here to Skip to main content
16,011,839 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaliterator Pin
nss6-Mar-04 4:41
nss6-Mar-04 4:41 
GeneralRe: iterator Pin
Michael Dunn6-Mar-04 5:02
sitebuilderMichael Dunn6-Mar-04 5:02 
GeneralRe: iterator Pin
nss6-Mar-04 5:44
nss6-Mar-04 5:44 
GeneralRe: iterator Pin
Jörgen Sigvardsson6-Mar-04 14:31
Jörgen Sigvardsson6-Mar-04 14:31 
GeneralRe: iterator Pin
Nemanja Trifunovic6-Mar-04 15:06
Nemanja Trifunovic6-Mar-04 15:06 
GeneralRe: iterator Pin
Jörgen Sigvardsson6-Mar-04 15:16
Jörgen Sigvardsson6-Mar-04 15:16 
QuestionWhat does this mean? Pin
Link26005-Mar-04 21:18
Link26005-Mar-04 21:18 
AnswerRe: What does this mean? Pin
Prakash Nadar5-Mar-04 21:36
Prakash Nadar5-Mar-04 21:36 
its called as the type conversion.

Since you use the 'equal to' operator, the identifier type should follow the general rule
LHS = RHS

the lhs is long while the rhs is of type clock_t so explicitly tell the compiler to make in equal to double so the assignment is satisfied.

This type conversion is used in no of different places.
but mostly w.r.t pointers.

here is an example.
char *pChar; //pointer to charecter
int *pInt; //pointer to integer.
//assuming they are valid.

pInt = (int*)pChar; //type conversion.

another example is of malloc if you see the return type of malloc its void*. suppose you are allocating char buffer
you would write this way

char *pChar;
pChar = (char*)malloc(...); //LHS = RHS

hope i answered ur question.







This space is empty.
AnswerRe: What does this mean? Pin
Roger Wright6-Mar-04 4:16
professionalRoger Wright6-Mar-04 4:16 
AnswerRe: What does this mean? Pin
Michael Dunn6-Mar-04 5:04
sitebuilderMichael Dunn6-Mar-04 5:04 
GeneralRe: What does this mean? Pin
Roger Wright6-Mar-04 5:09
professionalRoger Wright6-Mar-04 5:09 
GeneralRe: What does this mean? Pin
Prakash Nadar6-Mar-04 5:12
Prakash Nadar6-Mar-04 5:12 
GeneralRe: What does this mean? Pin
Roger Wright6-Mar-04 11:53
professionalRoger Wright6-Mar-04 11:53 
GeneralRe: What does this mean? Pin
Michael Dunn6-Mar-04 5:20
sitebuilderMichael Dunn6-Mar-04 5:20 
GeneralRe: What does this mean? Pin
Roger Wright6-Mar-04 5:28
professionalRoger Wright6-Mar-04 5:28 
GeneralLinker error Pin
Anthony_Yio5-Mar-04 20:43
Anthony_Yio5-Mar-04 20:43 
GeneralRe: Linker error Pin
Anthony_Yio5-Mar-04 22:14
Anthony_Yio5-Mar-04 22:14 
QuestionCan You Help With This? Pin
GameBoy™5-Mar-04 16:07
GameBoy™5-Mar-04 16:07 
AnswerRe: Can You Help With This? Pin
Prakash Nadar5-Mar-04 16:27
Prakash Nadar5-Mar-04 16:27 
AnswerRe: Can You Help With This? Pin
annum6-Mar-04 7:47
annum6-Mar-04 7:47 
Generalprogram optimization Pin
(Steven Hicks)n+15-Mar-04 15:03
(Steven Hicks)n+15-Mar-04 15:03 
GeneralRe: program optimization Pin
valikac5-Mar-04 16:03
valikac5-Mar-04 16:03 
GeneralRe: program optimization Pin
Prakash Nadar5-Mar-04 16:25
Prakash Nadar5-Mar-04 16:25 
GeneralRe: program optimization Pin
(Steven Hicks)n+15-Mar-04 18:26
(Steven Hicks)n+15-Mar-04 18:26 
GeneralRe: program optimization Pin
Prakash Nadar5-Mar-04 18:35
Prakash Nadar5-Mar-04 18:35 

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.