A Good Example Of A Loop in C++

//this is a good example of a C++ loop
//the while loop was used because there need to be breaks within the loop
//in this case a for loop would not be appropriate

#include <iostream.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include "StackLi.h" //includes stack class

typedef float stack_t;

int main (void)
result = StackObj.topAndPop();
cout << result << endl;
if(StackObj.isEmpty() == 0)
return 0;

This page was modified by Tanya Douglas at: Sunday, 25-Mar-2012 18:06:43 CST.
Copyright: Department of Computer Science, University of Regina of Regina.

[CS Department]