mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-08 04:59:21 +08:00
fix documentations and cpplint
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
struct node {
|
||||
int data;
|
||||
@@ -48,11 +47,10 @@ class Queue {
|
||||
node *ptr;
|
||||
ptr = front;
|
||||
do {
|
||||
cout << ptr->data << " ";
|
||||
std::cout << ptr->data << " ";
|
||||
ptr = ptr->next;
|
||||
} while (ptr != rear->next);
|
||||
cout << front->data;
|
||||
cout << endl;
|
||||
std::cout << front->data << std::endl;
|
||||
}
|
||||
};
|
||||
int main(void) {
|
||||
|
||||
Reference in New Issue
Block a user