Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Analysis of typical problems (15)

Shulou Source: shulou.com Published: 2022-06-03 07:51:40 11月23日 Update

After a period of writing, our data structure library has reached a certain scale. So the code we wrote before doesn't have a bit of bug? Every code has been tested before, so there is no bug, but let's analyze it to see if there is no bug at all.

Test 1: null pointer problem when creating an exception object, as follows

Main.cpp is as follows

# include # include "Exception.h" using namespace std;using namespace DTLib;int main () {try {NullPointerException npe; cout

Tags: Function result problem array test compile code element multidimensional run data way object breakpoint is in the program or necessary point to Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Docker Huawei vpn Shulou Technology