Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: clipboard Pin
samira forooghi8-Jul-09 21:47
samira forooghi8-Jul-09 21:47 
QuestionStartProcess/Inject DLL or Detours Pin
Daedro8-Jul-09 12:16
Daedro8-Jul-09 12:16 
AnswerRe: StartProcess/Inject DLL or Detours Pin
Baltoro8-Jul-09 14:25
Baltoro8-Jul-09 14:25 
AnswerRe: StartProcess/Inject DLL or Detours Pin
Adam Roderick J8-Jul-09 18:59
Adam Roderick J8-Jul-09 18:59 
QuestionHow to retrieve Public IP Address Pin
gamefreak22918-Jul-09 8:53
gamefreak22918-Jul-09 8:53 
QuestionRe: How to retrieve Public IP Address Pin
David Crow9-Jul-09 4:12
David Crow9-Jul-09 4:12 
AnswerRe: How to retrieve Public IP Address Pin
gamefreak22919-Jul-09 5:09
gamefreak22919-Jul-09 5:09 
Questioncant make it stop, problem with small c++ code Pin
rambache8-Jul-09 8:50
rambache8-Jul-09 8:50 
i have this problem, i am an amateur in programming c++ so i made this simple program: i have d0, d1, d2, and d3, i give them some values, then i have a, b, c, d, e, f, and g, and i want to calculate them with a math operation for each one, but that operation uses the d0, d1, d2, d3 values that you gave them before with the cin's, so, after you give the values to d0, d1, d2, and d3, the program closes itself because it finishes doing everything but i cant see the results for the a, b, c, d, e, f, and g operations. Can someone help me please.

This is my code:

#include <cstdlib>
#include <iostream>
#include <stdio.h>


using namespace std;


main()
{
int d0, d1, d2, d3;
int a, b, c, d, e, f, g;
//Meto los valores 0 y 1 de las variables d0, d1, d2, d3
cout<< "Inserte los valores de las siguientes variables:\n"<<endl;
cout<< "Variables: d0, d1, d2, d3\n";
cout<< "TIENEN QUE SER 0 o 1\n";
cout<< "Inserte d0\n";
cin>> d0;
cout<< "Inserte d1\n";
cin>> d1;
cout<< "Inserte d2\n";
cin>> d2;
cout<< "Inserte d3\n";
cin>> d3;
cout<< "Ahora se muestran los valores de cada segmento\n";
//Calculo los valores de las variables a, b, c, d, e, f, g, utilizando los valores de d0, d1, d2, d3
a= ((d0&&d2)||(!d0&&!d2)||(d1)||(d3));
b= ((d0&&d1)||(!d0&&!d1)||(!d2)||(d3));
c= ((d0)||(!d1)||(d2)||(d3));
d= ((!d0&&!d2)||(!d0&&d1)||(!d0&&d3)||(d1&&!d2)||(d1&&d3)||(d0&&!d1&&d2));
e= ((!d0&&d1)||(!d0&&d2));
f= ((d0&&d2)||(d0&d1)||(d2&&d2)||(d3));
g= ((!d0&&d1)||(!d1&&d2)||(!d1&&d2)||(d3));
//Muestro los valores en pantalla
cout<< a <<"\n";
cout<< b <<"\n";
cout<< c <<"\n";
cout<< d <<"\n";
cout<< e <<"\n";
cout<< f <<"\n";
cout<< g <<"\n";

}
AnswerRe: cant make it stop, problem with small c++ code Pin
josda10008-Jul-09 9:01
josda10008-Jul-09 9:01 
AnswerRe: cant make it stop, problem with small c++ code Pin
gamefreak22918-Jul-09 9:03
gamefreak22918-Jul-09 9:03 
GeneralRe: cant make it stop, problem with small c++ code Pin
josda10008-Jul-09 9:04
josda10008-Jul-09 9:04 
GeneralRe: cant make it stop, problem with small c++ code Pin
josda10008-Jul-09 9:03
josda10008-Jul-09 9:03 
GeneralRe: cant make it stop, problem with small c++ code Pin
gamefreak22918-Jul-09 9:12
gamefreak22918-Jul-09 9:12 
QuestionUnderstanding SDI Document/View Linkage - #$@%$%%^$%^% Pin
CodeMacDaddy8-Jul-09 8:47
CodeMacDaddy8-Jul-09 8:47 
Questionlib file keeps fully recompiling even when no changes have been made Pin
KellyR8-Jul-09 7:32
KellyR8-Jul-09 7:32 
AnswerRe: lib file keeps fully recompiling even when no changes have been made Pin
Stuart Dootson8-Jul-09 9:40
professionalStuart Dootson8-Jul-09 9:40 
AnswerRe: lib file keeps fully recompiling even when no changes have been made Pin
KellyR9-Jul-09 3:14
KellyR9-Jul-09 3:14 
AnswerRe: lib file keeps fully recompiling even when no changes have been made Pin
Alan Balkany8-Jul-09 11:21
Alan Balkany8-Jul-09 11:21 
Question[Message Deleted] Pin
vidya5568-Jul-09 7:10
vidya5568-Jul-09 7:10 
AnswerRe: Memory Manager Pin
David Crow8-Jul-09 7:15
David Crow8-Jul-09 7:15 
AnswerRe: Memory Manager Pin
Stuart Dootson8-Jul-09 7:17
professionalStuart Dootson8-Jul-09 7:17 
AnswerRe: Memory Manager Pin
Michael Schubert8-Jul-09 7:22
Michael Schubert8-Jul-09 7:22 
General[Message Deleted] Pin
vidya5568-Jul-09 7:37
vidya5568-Jul-09 7:37 
GeneralRe: Memory Manager Pin
molesworth8-Jul-09 9:37
molesworth8-Jul-09 9:37 
GeneralRe: Memory Manager Pin
vidya5568-Jul-09 11:07
vidya5568-Jul-09 11:07 

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.