Static const double in c++

前端 未结 7 425
轮回少年
轮回少年 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条回答
  • 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 <Double> l, double value ) {///…}
    
    0 讨论(0)
提交回复
热议问题