//Here is my code for part of my program, I am getting a error message of:
c:\documents and settings\carrie\desktop\stackclass.cpp(31) : error C2440: '=' : cannot convert from 'class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' to 'double'
if (parkinglot.LookAtTop() != s.substr(1)){
counter ++;
alley.Push(parkinglot.LookAtTop());
parkinglot.Pop();
parkinglot.LookAtTop();
};
if (parkinglot.LookAtTop() == plate){//This is where the arrow points at
cout << counter << "car(s) moved to get out" <<endl;
};
};
Any Suggestions??? I think it has to do with Push being a double function and Push being a void...or I may be totally off??!!