|
@@ -600,7 +600,7 @@ class StackFloat
|
|
public:
|
|
public:
|
|
void push(float v);
|
|
void push(float v);
|
|
float pop();
|
|
float pop();
|
|
- float Find(float x)
|
|
|
|
|
|
+ int Find(float x)
|
|
{
|
|
{
|
|
for(int i = 0; i < size; ++i)
|
|
for(int i = 0; i < size; ++i)
|
|
{
|
|
{
|
|
@@ -634,7 +634,7 @@ class Stack
|
|
public:
|
|
public:
|
|
void push(T v);
|
|
void push(T v);
|
|
T pop();
|
|
T pop();
|
|
- T Find(T x)
|
|
|
|
|
|
+ int Find(T x)
|
|
{
|
|
{
|
|
for(int i = 0; i < size; ++i)
|
|
for(int i = 0; i < size; ++i)
|
|
{
|
|
{
|