Quantcast
Channel: Coding Forums
Viewing all articles
Browse latest Browse all 1635

Infinite loop problem

$
0
0
In the code given below, after the execution of whole program and displaying the circular linked list the program is going in infinite loop can you please spot the error? The code perfectly displays everything and when i remove the destructor there is no infinite loop program stops with perfect output
C++:
#include <iostream>

using namespace std;

class Node

{

    public:

        int data;

        Node *next;

        Node(int data)

        {

            this->data = data...

Read more

Viewing all articles
Browse latest Browse all 1635

Latest Images

Trending Articles



Latest Images