A web backend developer, good at python and other backend development
Stay hungry, stay foolish! π
- Read more about my Blog(δΈζ)
- Contact me by [email protected]
- Quick overview my stars repo
Ahhh, Forgot me? here are my old avatars:
... |
A library of Data Structure and Algorithm implemented by C++
License: MIT License
A web backend developer, good at python and other backend development
Stay hungry, stay foolish! π
Ahhh, Forgot me? here are my old avatars:
... |
test file in Tests/unit_test_main.cpp Function: ADTQueueTestMachine(Queue* queue)
Bug code snippet in ADTs/LinkedQueue.cpp LinkedQueue::enqueue(const E &element)
After compiled by using G++
, ran it but received a Segmentation Fault
$ g++ -std=c++11 unit_test_main.cpp ~/GitHubRepo/DataStructure-Algorithm-Cpp/Test
$ ./a.out ~/GitHubRepo/DataStructure-Algorithm-Cpp/Test
Hello! This is unit test main.
test target implementation : 9ArrayListIiE ==OK==
test target implementation : 10LinkedListIiE ==OK==
test target implementation : 10ArrayStackIiE ==OK==
test target implementation : 11LinkedStackIiE ==OK==
test target implementation : 10ArrayQueueIiE ==OK==
[1] 11065 segmentation fault (core dumped) ./a.out
I debugged and found the problem on that function (LinkedQueue::enqueue()), and it cannot call new
to get new Node object....,As soon as it runs, it will report an error (Segmentation Fault).
After compiled by using Clang++
, ran it but received a unexpected result
$ clang++ -std=c++11 unit_test_main.cpp ~/GitHubRepo/DataStructure-Algorithm-Cpp/Test
$ ./a.out ~/GitHubRepo/DataStructure-Algorithm-Cpp/Test
Hello! This is unit test main.
test target implementation : 9ArrayListIiE ==OK==
test target implementation : 10LinkedListIiE ==OK==
test target implementation : 10ArrayStackIiE ==OK==
test target implementation : 11LinkedStackIiE ==OK==
test target implementation : 10ArrayQueueIiE ==OK==
a.out: unit_test_main.cpp:120: void ADTQueueTestMachine(Queue<E> *) [E = int]: Assertion `queue->front() == i' failed.
queue->front()
is 1 , not expected value 0A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.