new tag

2 questions


1 answers
126 views
0
c++ new operator error

https://github.com/j209446/BST_bag_class-c-/blob/master/main.cpp This is my cpp file. When I built it on VS2015, I got a C2668 errorAn error occurs in the new operator, but I don't know why.node->s...


1 answers
115 views
0
I assigned an array with new, but the last value of the array cannot be entered.

#include <iostream> using namespace std ; class Matrix { int** values; int row, column; public: Matrix(int row = 0, int column = 0) { this->row = row; this->column = column ; } Matrix ...


© 2024 OneMinuteCode. All rights reserved.