what i'm trying to do is convert a infix expression to a postfix expression using the std stack. for one of the cases (if the current character of the input string is an operator), i go to this...
Type: Posts; User: jbook
what i'm trying to do is convert a infix expression to a postfix expression using the std stack. for one of the cases (if the current character of the input string is an operator), i go to this...
to determine if part of a string is an operand, i have something like this:
bool isOperand(int pos, string op)
{
if (op.substr(pos, 1) == '(' ||
op.substr(pos, 1) == ')' ||...
woops i meant to put in the insert call, but i found the problem anyway. thanks
just one of my functions isn't throwing exceptions for some reason. this one doesn't work:
void list::insert(const plane& p) throw(listException)
{
int i = 0;
if (size >= MAX_LIST)...
thanks that helped with the logic, but just to get it to compile i need to know how to access l[i]'s atrributes from the overloaded operator code. the overload is in a plane.cpp. the list.cpp is...
i've been stuck for days now so... i'm trying to compare two objects, one is p of type plane, the other is a plane stored in l[i] of type list. i need to overload the operator< to compare the two...
i super new to c++ and i'm taking the second semester course, which i never took the first, so it's kinda hard for me with the syntax and all. here's my issue:
int getMenuOption()
{
int...