Click here to Skip to main content
15,891,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionmfc - animation plus interaction (e.g draw a rotating square and drag it) [modified] Pin
simon alec smith6-Nov-07 11:11
simon alec smith6-Nov-07 11:11 
Answercross-post Pin
led mike6-Nov-07 11:36
led mike6-Nov-07 11:36 
JokeRe: cross-post Pin
Rajesh R Subramanian6-Nov-07 21:15
professionalRajesh R Subramanian6-Nov-07 21:15 
AnswerRe: mfc - animation plus interaction (e.g draw a rotating square and drag it) Pin
Hamid_RT6-Nov-07 19:03
Hamid_RT6-Nov-07 19:03 
AnswerRe: mfc - animation plus interaction (e.g draw a rotating square and drag it) Pin
Nelek6-Nov-07 21:57
protectorNelek6-Nov-07 21:57 
AnswerRe: Bases conversion in C Pin
David Crow6-Nov-07 10:46
David Crow6-Nov-07 10:46 
GeneralRe: Bases conversion in C Pin
led mike6-Nov-07 11:33
led mike6-Nov-07 11:33 
GeneralRe: Bases conversion in C Pin
YNick6-Nov-07 12:14
YNick6-Nov-07 12:14 
#include <stdio.h>
#include <stdlib.h>
#include <math.h>


int main()
{
int tobase=0;
int number =0;
int counter = 0;
int bin [25];
int quo = 1;

printf("Enter your number:");
scanf("%d",&number);

printf("Enter base to convert to: ");
scanf("%d",&tobase);



while (quo!= 0)
{
quo= number/tobase;
bin[counter] = number%tobase;
counter ++;
number=quo;
}

while (counter > 0)
{
printf( "%d", bin[counter-1]);
counter --;
}

system("PAUSE");
return 0;
}


how to make this code into a function?
GeneralRe: Bases conversion in C Pin
YNick6-Nov-07 12:28
YNick6-Nov-07 12:28 
GeneralRe: Bases conversion in C Pin
User 5838526-Nov-07 14:56
User 5838526-Nov-07 14:56 
QuestionRe: Bases conversion in C Pin
David Crow6-Nov-07 17:36
David Crow6-Nov-07 17:36 
AnswerRe: Bases conversion in C Pin
YNick7-Nov-07 0:55
YNick7-Nov-07 0:55 
GeneralRe: Bases conversion in C Pin
David Crow7-Nov-07 2:33
David Crow7-Nov-07 2:33 
GeneralRe: Bases conversion in C Pin
YNick7-Nov-07 4:14
YNick7-Nov-07 4:14 
QuestionRe: Bases conversion in C Pin
David Crow7-Nov-07 4:19
David Crow7-Nov-07 4:19 
QuestionHow to exchange message between different pages in tab control? Pin
Panamk6-Nov-07 8:43
Panamk6-Nov-07 8:43 
AnswerRe: How to exchange message between different pages in tab control? Pin
Maximilien6-Nov-07 9:02
Maximilien6-Nov-07 9:02 
GeneralRe: How to exchange message between different pages in tab control? Pin
Panamk6-Nov-07 9:09
Panamk6-Nov-07 9:09 
AnswerRe: How to exchange message between different pages in tab control? Pin
PJ Arends6-Nov-07 9:45
professionalPJ Arends6-Nov-07 9:45 
GeneralRe: How to exchange message between different pages in tab control? Pin
Maximilien6-Nov-07 9:51
Maximilien6-Nov-07 9:51 
GeneralRe: How to exchange message between different pages in tab control? Pin
Panamk6-Nov-07 10:55
Panamk6-Nov-07 10:55 
GeneralRe: How to exchange message between different pages in tab control? Pin
Panamk6-Nov-07 13:38
Panamk6-Nov-07 13:38 
GeneralRe: How to exchange message between different pages in tab control? Pin
Panamk6-Nov-07 13:39
Panamk6-Nov-07 13:39 
GeneralRe: How to exchange message between different pages in tab control? Pin
Nelek6-Nov-07 21:49
protectorNelek6-Nov-07 21:49 
AnswerRe: How to exchange message between different pages in tab control? Pin
Sam Hobbs6-Nov-07 15:57
Sam Hobbs6-Nov-07 15:57 

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.