小编Stu*_*860的帖子

尝试创建 EC2 实例时我的 VPC 呈灰色?

我正在尝试在已创建的 VPC 网络中创建一个实例。由于某种原因,当我在启动过程中时,我无法选择我的 VPC,它只能让我选择一个默认 VPC,这不是我想要的。

VPC 灰显

amazon-ec2 vpc amazon-web-services aws-vpc

1
推荐指数
1
解决办法
3705
查看次数

没有找到函数定义?

我正在尝试定义函数“getCurSize”,但由于某种原因,即使我在其下面定义它,它也无法识别该定义并以绿色下划线显示。(这里是初学者,请耐心等待)

template<class ItemType>
class FDHPolynomial
{
private:
    FDHNode<ItemType>* headPtr;
    int itemcount;
    FDHNode<ItemType>* getPointedTo(const ItemType& nodenum) const;

public:
    FDHPolynomial();
    FDHPolynomial(const FDHPolynomial <ItemType>& aPoly);
    virtual ~FDHPolynomial();

    int getCurSize() const;
    bool isEmpty() const;
    bool add(const ItemType& newCoeffi, const ItemType& newExpon);
    bool remove(const ItemType& anExpon);
    void clear();
    bool contains(const ItemType& aExpon) const;
    ItemType degree() const;
    ItemType coefficient(const ItemType& power) const;
    void changeCoefficient(const ItemType& newCoeffi, const ItemType&power);
    std::vector<ItemType> toVector() const;

void print();


};

template<class ItemType>
int Polynomial<ItemType>::getCurSize() const
{
    return itemCount;
}
Run Code Online (Sandbox Code Playgroud)

c++ visual-c++ c++11

0
推荐指数
1
解决办法
3829
查看次数

标签 统计

amazon-ec2 ×1

amazon-web-services ×1

aws-vpc ×1

c++ ×1

c++11 ×1

visual-c++ ×1

vpc ×1