Hello,
I have 2 questions. I had this line in my code:
In the debugger at this line, all 3 variables have some non-zero values let's say X,Y,Z.Code:// Globals TInt iBytes = 0; TInt iFiles = 0; TInt iFolders = 0; ... void function f() { ... console->Printf(_L("%f bytes (%d folders and %d files) copied\n"), iBytes, iFolders, iFiles); ... }
This code prints :
"0.0000 bytes (Y folders and 0 files) copied".
But when I change the line to
(i.e. change %f to %d)This code prints:Code:console->Printf(_L("%d bytes (%d folders and %d files) copied\n"), iBytes, iFolders, iFiles);
"X bytes (Y folders and Z files) copied"
So I am curious about this behaviour in the first code. Why it is so(i.e iBytes does not work that's ok,but why iFolders works and not iFiles)?
And second question, how can I see the implementation of the Printf(i.e. where is e32cons.cpp)? VC++ 6 shows only e32cons.h file.
Thanks in advance for your responses.
--------------------------------------------------------------------------------
CaNeR



Reply With Quote

