Click here to Skip to main content
15,886,096 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionquine mccluskey method on C/C++ Pin
Reuben Cabrera2-Oct-14 4:08
Reuben Cabrera2-Oct-14 4:08 
GeneralRe: quine mccluskey method on C/C++ Pin
David Crow2-Oct-14 5:13
David Crow2-Oct-14 5:13 
GeneralRe: quine mccluskey method on C/C++ Pin
Reuben Cabrera2-Oct-14 21:38
Reuben Cabrera2-Oct-14 21:38 
GeneralRe: quine mccluskey method on C/C++ Pin
Reuben Cabrera2-Oct-14 21:45
Reuben Cabrera2-Oct-14 21:45 
QuestionRe: quine mccluskey method on C/C++ Pin
Richard MacCutchan2-Oct-14 5:17
mveRichard MacCutchan2-Oct-14 5:17 
JokeRe: quine mccluskey method on C/C++ Pin
CPallini2-Oct-14 7:21
mveCPallini2-Oct-14 7:21 
GeneralRe: quine mccluskey method on C/C++ Pin
Richard MacCutchan2-Oct-14 7:30
mveRichard MacCutchan2-Oct-14 7:30 
GeneralRe: quine mccluskey method on C/C++ Pin
Reuben Cabrera2-Oct-14 21:41
Reuben Cabrera2-Oct-14 21:41 
C#
#include<stdio.h>
#include<stdlib.h>
#include<conio.h>

int convert(int);
main()
{
int var,x,y,number,number2;
int minterms[x],minterm[y];

printf("=========QUINE MCCLUSKEY METHOD========");
printf("\nHOW MANY VARIABLES DOES THE FUNCTION HAVE:?");
scanf("%d",&var);

printf("\nHOW MANY MINTERMS?:");
scanf("%d",&number);
number2=number;
for(x=0;number2!=0;number2--)
{
    printf("\nENTER MINTERM:");
    scanf("%d",&minterms[x]);
    x++;
}

//convert each minterm to there binary form//
x=0;
y=0;
while(number!=0)
{
minterm[y]=convert(minterm[x]);
x++;
y++;
}

y=0;
while(number!=0)
{
printf("\n %d",minterm[y]);
number--;
y++;
}


}

int convert(int a)
{
    int quot,binarynumber[100],i=1,sum=0;
    int multi;
    quot=a;
    while(quot!=0)
    {
    binarynumber[i++]=quot%2;
    quot= quot/2;
    if(i==1)
    {
        sum=sum + (binarynumber[i++] * 1);
    }
    else

    sum = sum + (binarynumber[i++] * multiplier);
    }

    return sum;

}

AnswerRe: quine mccluskey method on C/C++ Pin
Reuben Cabrera2-Oct-14 21:35
Reuben Cabrera2-Oct-14 21:35 
GeneralRe: quine mccluskey method on C/C++ Pin
Richard MacCutchan2-Oct-14 21:45
mveRichard MacCutchan2-Oct-14 21:45 
GeneralRe: quine mccluskey method on C/C++ Pin
Reuben Cabrera2-Oct-14 23:03
Reuben Cabrera2-Oct-14 23:03 
QuestionMFC- receiving Button-Click-Message failed Pin
Member 111256242-Oct-14 4:05
Member 111256242-Oct-14 4:05 
AnswerRe: MFC- receiving Button-Click-Message failed Pin
Richard Andrew x642-Oct-14 10:47
professionalRichard Andrew x642-Oct-14 10:47 
GeneralRe: MFC- receiving Button-Click-Message failed Pin
Member 111256243-Oct-14 1:15
Member 111256243-Oct-14 1:15 
Questionreplace malloc by new Pin
_Flaviu2-Oct-14 2:32
_Flaviu2-Oct-14 2:32 
AnswerRe: replace malloc by new Pin
_Flaviu2-Oct-14 3:02
_Flaviu2-Oct-14 3:02 
Questionhow to utilize "(int argc, const char * argv[]) " in a program Pin
Stefan611-Oct-14 13:25
Stefan611-Oct-14 13:25 
AnswerRe: how to utilize "(int argc, const char * argv[]) " in a program Pin
enhzflep1-Oct-14 19:59
enhzflep1-Oct-14 19:59 
AnswerRe: how to utilize "(int argc, const char * argv[]) " in a program Pin
CPallini1-Oct-14 22:03
mveCPallini1-Oct-14 22:03 
QuestionIs it possible to bind the "this" pointer Pin
elelont230-Sep-14 20:30
elelont230-Sep-14 20:30 
AnswerRe: Is it possible to bind the "this" pointer Pin
CPallini30-Sep-14 21:48
mveCPallini30-Sep-14 21:48 
AnswerRe: Is it possible to bind the "this" pointer Pin
CubbiMew1-Oct-14 16:42
CubbiMew1-Oct-14 16:42 
QuestionOnly Desktop capturing without some active windows or capture only Desktop i.e Desktop Background and Icons Pin
narmadha_s30-Sep-14 2:53
narmadha_s30-Sep-14 2:53 
QuestionRe: Only Desktop capturing without some active windows or capture only Desktop i.e Desktop Background and Icons Pin
Richard MacCutchan30-Sep-14 6:04
mveRichard MacCutchan30-Sep-14 6:04 
AnswerRe: Only Desktop capturing without some active windows or capture only Desktop i.e Desktop Background and Icons Pin
narmadha_s6-Oct-14 19:33
narmadha_s6-Oct-14 19:33 

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.