All pastes #940510 Raw Edit

Unnamed

public text v1 · immutable
·published 2008-03-13 00:44 UTC
rendered paste body
// LoopTest.cpp  Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
    int startInt;
    startInt = 1;
    if (startInt = 1)
    {
                 cout << "The integer start value is 1";
                 startInt = 2;
    }
    else
                 cout << "the integer start value is not 1.";
                 system("PAUSE");
                 
    switch (startInt)
           
           {
           case 2:
                cout << "The value of startInt changed from 1 to " <<
startInt << endl;
           system("PAUSE");
           break;
           case 1:
                cout << "The value of startInt has not changed.\n";
                system("Pause");
                break;
           defualt:
                   cout << "The status of the startInt value is not" <<
                   system("Pause");
                   }
                   
           return 0;
}