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

C / C++ / MFC

 
AnswerRe: Play a movie clip Pin
Naveen12-Jul-06 18:19
Naveen12-Jul-06 18:19 
GeneralRe: Play a movie clip Pin
see me12-Jul-06 18:31
see me12-Jul-06 18:31 
AnswerRe: Play a movie clip Pin
A_Fa12-Jul-06 19:35
A_Fa12-Jul-06 19:35 
GeneralRe: Play a movie clip Pin
see me12-Jul-06 20:11
see me12-Jul-06 20:11 
AnswerRe: Play a movie clip Pin
Hamid_RT12-Jul-06 20:00
Hamid_RT12-Jul-06 20:00 
GeneralRe: Play a movie clip Pin
see me12-Jul-06 20:06
see me12-Jul-06 20:06 
GeneralRe: Play a movie clip Pin
Hamid_RT12-Jul-06 20:10
Hamid_RT12-Jul-06 20:10 
Questionmodulus operator Pin
thathvamsi12-Jul-06 16:25
thathvamsi12-Jul-06 16:25 
Hey all,
I need to do this operation

float x;
int y;
int z;

x= (float)((y-z)/60);
if(x % (int)x)!= 0)
{x = (int)x +1;
}

how do i do a mod of float and int. If x is an int then, I can use % operator. But in my case I need to find out if x = 2.1 then I need to round it to 3 ; also if x= 2.6, i need to round it to 3.

How can I do this? Can anyone help? Iam using VC++6.0

Thanks in advance.
AnswerRe: modulus operator Pin
nguyenvhn12-Jul-06 17:29
nguyenvhn12-Jul-06 17:29 
GeneralRe: modulus operator Pin
thathvamsi12-Jul-06 17:36
thathvamsi12-Jul-06 17:36 
AnswerRe: modulus operator Pin
Naveen12-Jul-06 17:41
Naveen12-Jul-06 17:41 
GeneralRe: modulus operator Pin
thathvamsi12-Jul-06 18:06
thathvamsi12-Jul-06 18:06 
GeneralRe: modulus operator Pin
Naveen12-Jul-06 18:17
Naveen12-Jul-06 18:17 
Questionhelp useing Microsoft HTML Object Library in visual c++ 6 Pin
method00712-Jul-06 12:14
method00712-Jul-06 12:14 
AnswerRe: help useing Microsoft HTML Object Library in visual c++ 6 Pin
nguyenvhn12-Jul-06 17:32
nguyenvhn12-Jul-06 17:32 
GeneralRe: help useing Microsoft HTML Object Library in visual c++ 6 Pin
method00712-Jul-06 17:47
method00712-Jul-06 17:47 
QuestionC++ memory question Pin
mdexch12-Jul-06 11:59
mdexch12-Jul-06 11:59 
AnswerRe: C++ memory question [modified] Pin
earl12-Jul-06 13:11
earl12-Jul-06 13:11 
GeneralRe: C++ memory question Pin
mdexch14-Jul-06 7:58
mdexch14-Jul-06 7:58 
AnswerRe: C++ memory question Pin
Joe Woodbury12-Jul-06 14:11
professionalJoe Woodbury12-Jul-06 14:11 
GeneralRe: C++ memory question Pin
kanduripavan12-Jul-06 20:46
kanduripavan12-Jul-06 20:46 
GeneralRe: C++ memory question Pin
Joe Woodbury13-Jul-06 0:11
professionalJoe Woodbury13-Jul-06 0:11 
Questionsscanf will only put value in first variable Pin
Evilpixie12-Jul-06 11:32
Evilpixie12-Jul-06 11:32 
AnswerRe: sscanf will only put value in first variable [modified] Pin
earl12-Jul-06 12:46
earl12-Jul-06 12:46 
GeneralRe: sscanf will only put value in first variable Pin
Evilpixie12-Jul-06 13:11
Evilpixie12-Jul-06 13:11 

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.