Static const double in c++

前端 未结 7 465
轮回少年
轮回少年 2021-01-02 07:54

Is this the proper way to use a static const variable? In my top level class (Shape)

#ifndef SHAPE_H
#define SHAPE_H

class Shape
{
public:

    static cons         


        
7条回答
  •  萌比男神i
    2021-01-02 08:51

    Implement a function that returns the index of a value to the list if it exists. Otherwise return -1 if there is no value. If the same value exists more than once on the list then the first value is deleted from the bottom.

    public static intfindFromLast (List  l, double value ) {///…}
    

提交回复
热议问题