operator-overloading tag

2 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...


© 2024 OneMinuteCode. All rights reserved.