overloading tag

4 questions


1 answers
142 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
102 views
0
How does Python initialize a list to zero by a certain length?

In C/C++, int myarr[100] = {};If you write it like this, all 100 elements have been initialized to zeroIn the Python list, mylist = [0 for i in range(100)]Is this the most Python way to write a for se...


1 answers
126 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 ...


1 answers
105 views
0
Java programming constructor overloading

Book(){}Book(String title, String author) { this.title = title; this.author = author;}Is it overloaded if I do this?


© 2024 OneMinuteCode. All rights reserved.