Bool Test


Program Listing

BoolTest.cpp

/************************************************************************
*                                                                       *
*   Program:    Bool Test                                               *
*                                                                       *
************************************************************************/

#include <iostream>
#include <string>

using namespace std;

int main() {

//  Print the basic values

    cout << "true = " << true << endl;
    cout << "false = " << false << endl;

    return 0;
}

Sample Run

true = 1
false = 0



Return to Lectures page


e-mail me at robbk@hsc.edu

This page was last modified on Tue Dec 7 16:04:23 1999 .

URL: http://people.hsc.edu/faculty-staff/robbk/Coms261/Examples/BoolTest.html

Return to Coms 261 home page