Sorry for the bad english. Thanks I thought so. It worked on my PC but just wanted to confirm that it could be done without any problems just like integers. Also what about testing equality of two floating point numbers ? They could be tested for almost equality as I understand it
johnny alpaca
Posts
-
newbie C question -
newbie C questionCan you > and < to find the greater of two floating point (float) numbers in C? Or do I have to do something else like write a function?
-
VC++ 6.0 question newbie questionthanks that does it I am new to C++
-
VC++ 6.0 question newbie questionI want data to displayed like this 25 4E 20 F6 .... (for example) and not like this 25 4E 20 F6 ( I dont want for it to displayed in Different rows but all in the same row)
-
VC++ 6.0 question newbie questionIs AppendFormat present CString Function in VC++ 6.0 ?
-
VC++ 6.0 question newbie questionI have a CListBox in which I display a string using the AddString function For the CString I use it's Format Function CListBox List1; CString str; short Data[50]; int DataSize ; /* variable */ DataSize = /*some processing */ for ( i=0;i<j;i++) { /* some other processing*/ str.Format("%X ",Data[i]); List1.AddString(str); } My current code Data is outputed in this manner 05 25 6F E2 I want my display to be like this : Contents of Data[DataSize-1] Contents of Data[DataSize-2] .... Data[0] e.g if Data[0]= 05 Data[1]= 25 Data[2]=6F and Data[3]= E2 Display I want is E2 6F 25 05 (ie in the same line ) How do I go about doing it ? any help woould be appreciated