Click here to Skip to main content
15,905,682 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Hian Buddy what are u saying,u can directly write to me your problem Pin
quzi12-Jul-04 18:33
quzi12-Jul-04 18:33 
GeneralRe: Hian Buddy what are u saying,u can directly write to me your problem Pin
ThatsAlok11-Jul-04 23:26
ThatsAlok11-Jul-04 23:26 
GeneralHain don't call my application virus Pin
ThatsAlok11-Jul-04 22:57
ThatsAlok11-Jul-04 22:57 
GeneralRe: Hain don't call my application virus Pin
Antti Keskinen12-Jul-04 4:28
Antti Keskinen12-Jul-04 4:28 
GeneralRe: Hain don't call my application virus Pin
David Crow12-Jul-04 6:04
David Crow12-Jul-04 6:04 
GeneralRe: Hain don't call my application virus Pin
ThatsAlok12-Jul-04 20:05
ThatsAlok12-Jul-04 20:05 
GeneralAbout customizing LoadKeyboardLayout - regarding Pin
Sukumaran K.11-Jul-04 19:24
Sukumaran K.11-Jul-04 19:24 
Generalproblm with float value Pin
Zeeshan Bilal11-Jul-04 19:19
Zeeshan Bilal11-Jul-04 19:19 
HI,

i want to convert my Answer to float from integer value
as in my code follows

float k =0.0;
int count = 0;
CString str;
for (int i=30;i <= 1440; )
{
k= i/60; /// here problem is
//// if i = 90 then result should be 90/60 = 1.50
////// its gives 1.00 ,, but its should be 1.50
//// in all case of any.50 it gives any.00

str.Format(_T("%d min. or (%2.02f Hrs)"), i , k);
m_ctrl.InsertString(count++, str);


i= i+30;
}


i hope u got the problm ,, that is i also need answer in shape of 1.00 , 1.50 , 2.00 , 2.50 etc.
but its shows 1.50 , 2,50 ..as 1.00 , 2.00 respectvly.

measn it round .50 to lower .00 value

thanx
GeneralRe: problm with float value Pin
Cedric Moonen11-Jul-04 20:47
Cedric Moonen11-Jul-04 20:47 
Generalthanx Pin
Zeeshan Bilal11-Jul-04 20:55
Zeeshan Bilal11-Jul-04 20:55 
Generaldynamic common controls Pin
Puah11-Jul-04 18:51
Puah11-Jul-04 18:51 
GeneralRe: dynamic common controls Pin
Antti Keskinen11-Jul-04 19:16
Antti Keskinen11-Jul-04 19:16 
GeneralRe: dynamic common controls Pin
Puah11-Jul-04 20:35
Puah11-Jul-04 20:35 
GeneralRe: dynamic common controls Pin
Antti Keskinen11-Jul-04 20:56
Antti Keskinen11-Jul-04 20:56 
GeneralNot really sure how to ask this! Pin
otrcomm11-Jul-04 18:41
otrcomm11-Jul-04 18:41 
GeneralRe: Not really sure how to ask this! Pin
V.11-Jul-04 20:41
professionalV.11-Jul-04 20:41 
GeneralRe: Not really sure how to ask this! Pin
otrcomm11-Jul-04 21:31
otrcomm11-Jul-04 21:31 
GeneralRe: Not really sure how to ask this! Pin
V.11-Jul-04 21:48
professionalV.11-Jul-04 21:48 
QuestionHow does this happen? Pin
the_augy11-Jul-04 18:36
the_augy11-Jul-04 18:36 
AnswerRe: How does this happen? Pin
Antti Keskinen11-Jul-04 19:27
Antti Keskinen11-Jul-04 19:27 
GeneralRe: How does this happen? Pin
the_augy11-Jul-04 20:04
the_augy11-Jul-04 20:04 
AnswerRe: How does this happen? Pin
V.11-Jul-04 20:44
professionalV.11-Jul-04 20:44 
Generalhelp! Pin
sunmozhou11-Jul-04 16:28
sunmozhou11-Jul-04 16:28 
GeneralRe: help! Pin
Ryan Binns11-Jul-04 17:53
Ryan Binns11-Jul-04 17:53 
GeneralRe: help! Pin
ThatsAlok11-Jul-04 22:32
ThatsAlok11-Jul-04 22:32 

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.