Click here to Skip to main content
15,911,132 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DLL Project to Static Lib. Pin
Mike Nordell25-Sep-02 20:32
Mike Nordell25-Sep-02 20:32 
GeneralRe: DLL Project to Static Lib. Pin
Jawache25-Sep-02 22:29
Jawache25-Sep-02 22:29 
QuestionDAORecordsets? Pin
slacker25-Sep-02 8:00
slacker25-Sep-02 8:00 
GeneralAdd Resource Option Fails in .NET Pin
slacker25-Sep-02 7:56
slacker25-Sep-02 7:56 
Generaldebug build OK, release build fails Pin
tomc25-Sep-02 6:56
tomc25-Sep-02 6:56 
GeneralRe: debug build OK, release build fails Pin
jmkhael25-Sep-02 6:59
jmkhael25-Sep-02 6:59 
GeneralRe: debug build OK, release build fails Pin
tomc25-Sep-02 7:14
tomc25-Sep-02 7:14 
GeneralLoop Pin
Doug7725-Sep-02 6:30
sussDoug7725-Sep-02 6:30 
#include <stdio.h>

void main( void )

{
int a, b, c, d, e, f; /* For key cuts 1, 2, 3 ... */
int pins, cuts;
/*int cmbArray[6]; Array for each combination*/

cuts = 6;
pins = 5;


for (a=1; a <= cuts; ++a)
for (b=1; b <= cuts; ++b)
for (c=1; c <= cuts; ++c)
for (d=1; d <= cuts; ++d)
for (e=1; e <= cuts; ++e)
/*for (f=1; f <= cuts; ++f)*/

if(a=b=c=d=e)
printf("%3d %3d %3d %3d %3d Unacceptable per Rule #2\n", a, b, c, d, e);
else
printf("%3d %3d %3d %3d %3d\n", a, b, c, d, e);
}

This outputs only the if condition. Why doesn't the else statement print? I should get a few thousand lines instead of only six.

Thanks.
GeneralRe: Loop Pin
jmkhael25-Sep-02 6:33
jmkhael25-Sep-02 6:33 
Generalmodulus and double Pin
pnpfriend25-Sep-02 6:09
pnpfriend25-Sep-02 6:09 
GeneralRe: modulus and double Pin
jmkhael25-Sep-02 6:25
jmkhael25-Sep-02 6:25 
GeneralRe: modulus and double Pin
Todd Smith25-Sep-02 7:14
Todd Smith25-Sep-02 7:14 
GeneralNeed HELP! CommandBars removed! Pin
Daniel Strigl25-Sep-02 5:29
Daniel Strigl25-Sep-02 5:29 
GeneralSDI Form Resize Pin
Ruca25-Sep-02 5:26
Ruca25-Sep-02 5:26 
GeneralRe: SDI Form Resize Pin
Joaquín M López Muñoz25-Sep-02 8:26
Joaquín M López Muñoz25-Sep-02 8:26 
GeneralMDI Problem!!!!!!!! Pin
MFC is the Best25-Sep-02 4:44
MFC is the Best25-Sep-02 4:44 
GeneralRe: MDI Problem!!!!!!!! Pin
jmkhael25-Sep-02 4:52
jmkhael25-Sep-02 4:52 
GeneralRe: MDI Problem!!!!!!!! Pin
MFC is the Best25-Sep-02 5:07
MFC is the Best25-Sep-02 5:07 
GeneralRe: MDI Problem!!!!!!!! Pin
Tomasz Sowinski25-Sep-02 5:15
Tomasz Sowinski25-Sep-02 5:15 
GeneralRe: MDI Problem!!!!!!!! Pin
MFC is the Best25-Sep-02 5:11
MFC is the Best25-Sep-02 5:11 
GeneralGeting a Controls ID from a HWND. Pin
Jawache25-Sep-02 4:38
Jawache25-Sep-02 4:38 
GeneralRe: Geting a Controls ID from a HWND. Pin
User 665825-Sep-02 4:54
User 665825-Sep-02 4:54 
GeneralRe: Geting a Controls ID from a HWND. Pin
Jawache25-Sep-02 5:08
Jawache25-Sep-02 5:08 
GeneralRe: Geting a Controls ID from a HWND. Pin
valikac25-Sep-02 10:58
valikac25-Sep-02 10:58 
GeneralSTL advice required Pin
User 988525-Sep-02 4:23
User 988525-Sep-02 4:23 

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.