Click here to Skip to main content
15,913,836 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: DeleteFile() Function Failure Pin
thanh_bkhn4-Jul-13 17:46
professionalthanh_bkhn4-Jul-13 17:46 
AnswerRe: DeleteFile() Function Failure Pin
Richard MacCutchan4-Jul-13 21:02
mveRichard MacCutchan4-Jul-13 21:02 
AnswerRe: DeleteFile() Function Failure Pin
hans.sch11-Jul-13 6:56
hans.sch11-Jul-13 6:56 
AnswerRe: DeleteFile() Function Failure Pin
Erudite_Eric15-Jul-13 2:30
Erudite_Eric15-Jul-13 2:30 
QuestionClass not registered error Pin
sdancer754-Jul-13 2:30
sdancer754-Jul-13 2:30 
AnswerRe: Class not registered error Pin
«_Superman_»4-Jul-13 20:01
professional«_Superman_»4-Jul-13 20:01 
GeneralRe: Class not registered error Pin
sdancer754-Jul-13 21:34
sdancer754-Jul-13 21:34 
GeneralRe: Class not registered error Pin
«_Superman_»4-Jul-13 21:46
professional«_Superman_»4-Jul-13 21:46 
GeneralRe: Class not registered error Pin
sdancer754-Jul-13 22:53
sdancer754-Jul-13 22:53 
GeneralRe: Class not registered error Pin
«_Superman_»4-Jul-13 23:00
professional«_Superman_»4-Jul-13 23:00 
GeneralRe: Class not registered error Pin
sdancer754-Jul-13 23:27
sdancer754-Jul-13 23:27 
GeneralRe: Class not registered error Pin
«_Superman_»4-Jul-13 23:41
professional«_Superman_»4-Jul-13 23:41 
GeneralRe: Class not registered error Pin
sdancer754-Jul-13 23:57
sdancer754-Jul-13 23:57 
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 

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.