Click here to Skip to main content
15,895,656 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Class not registered error Pin
sdancer755-Jul-13 0:13
sdancer755-Jul-13 0:13 
GeneralRe: Class not registered error Pin
sdancer7511-Jul-13 23:16
sdancer7511-Jul-13 23:16 
GeneralRe: Class not registered error Pin
Jesusjenifer23-Dec-14 19:46
Jesusjenifer23-Dec-14 19:46 
GeneralRe: Class not registered error Pin
sdancer7523-Dec-14 22:57
sdancer7523-Dec-14 22:57 
QuestionDoes DeleteFile function returns immediatly? Pin
Donguy19763-Jul-13 7:00
Donguy19763-Jul-13 7:00 
AnswerRe: Does DeleteFile function returns immediatly? Pin
jeron13-Jul-13 7:49
jeron13-Jul-13 7:49 
AnswerRe: Does DeleteFile function returns immediatly? Pin
Jochen Arndt3-Jul-13 8:12
professionalJochen Arndt3-Jul-13 8:12 
QuestionCalculator in C Language Pin
anasshad3-Jul-13 2:11
anasshad3-Jul-13 2:11 
Hello!!! I'm learning C language and trying to make a calculator. Here's the code:

C#
#include <stdio.h>
int main()
{
    int a, b, add, sub, mul;
    float div;
    char choice='y';
    do {
    printf("Enter any choice:\n1. Addition(a)\n2. Subtraction(b)\n3. Multiplication(c)\n4. Division(d)\n5. Exit(x)");
    scanf("%c", &choice);
    switch(choice)
    {
                  case 'a':
                       {printf("Enter any two numbers:");
                       scanf("%d %d",&a, &b);
                       add = a + b;
                       printf("Sum: %d\n", add);
                       break;}
                  case 'b':
                       printf("Enter any two numbers:");
                       scanf("%d %d",&a, &b);
                       sub = a - b;
                       printf("Difference: %d\n", sub);
                       break;
                  case 'c':
                       printf("Enter any two numbers:");
                       scanf("%d %d",&a, &b);
                       mul = a * b;
                       printf("Product: %d\n", mul);
                       break;
                  case 'd':
                       printf("Enter any two numbers:");
                       scanf("%d %d",&a, &b);
                       div = a / b;
                       printf("Quotient: %f\n", div);
                       break;
                  case 'x':
                       break;
                       }
                       }while(choice!='x');

                  return 0;
                       }


The problem is that it is not looking very good. I'll be very thankful if anyone could help.
AnswerRe: Calculator in C Language Pin
Richard MacCutchan3-Jul-13 2:42
mveRichard MacCutchan3-Jul-13 2:42 
QuestionRe: Calculator in C Language Pin
Maximilien3-Jul-13 2:45
Maximilien3-Jul-13 2:45 
AnswerRe: Calculator in C Language Pin
Jonathan Davies3-Jul-13 3:03
Jonathan Davies3-Jul-13 3:03 
QuestionRe: Calculator in C Language Pin
David Crow3-Jul-13 4:47
David Crow3-Jul-13 4:47 
QuestionSlider not working properly.? Pin
mbatra312-Jul-13 23:52
mbatra312-Jul-13 23:52 
AnswerRe: Slider not working properly.? Pin
Maximilien3-Jul-13 3:01
Maximilien3-Jul-13 3:01 
GeneralRe: Slider not working properly.? Pin
mbatra313-Jul-13 3:16
mbatra313-Jul-13 3:16 
QuestionHow I get the Header HDC of listview in custom draw? Pin
JoneLe862-Jul-13 9:04
JoneLe862-Jul-13 9:04 
AnswerRe: How I get the Header HDC of listview in custom draw? Pin
Richard MacCutchan2-Jul-13 20:41
mveRichard MacCutchan2-Jul-13 20:41 
GeneralRe: How I get the Header HDC of listview in custom draw? Pin
JoneLe863-Jul-13 5:41
JoneLe863-Jul-13 5:41 
AnswerRe: How I get the Header HDC of listview in custom draw? Pin
Jochen Arndt2-Jul-13 21:11
professionalJochen Arndt2-Jul-13 21:11 
GeneralRe: How I get the Header HDC of listview in custom draw? Pin
JoneLe863-Jul-13 5:38
JoneLe863-Jul-13 5:38 
QuestionAVI Splitter Filter does not return its mediatype Pin
sdancer752-Jul-13 8:29
sdancer752-Jul-13 8:29 
AnswerRe: AVI Splitter Filter does not return its mediatype Pin
Richard MacCutchan2-Jul-13 20:37
mveRichard MacCutchan2-Jul-13 20:37 
GeneralRe: AVI Splitter Filter does not return its mediatype Pin
sdancer752-Jul-13 22:01
sdancer752-Jul-13 22:01 
QuestionRe: AVI Splitter Filter does not return its mediatype Pin
Richard MacCutchan2-Jul-13 22:10
mveRichard MacCutchan2-Jul-13 22:10 
AnswerRe: AVI Splitter Filter does not return its mediatype Pin
sdancer752-Jul-13 23:58
sdancer752-Jul-13 23:58 

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.