Flowchart (ISO 5807)
Source code
C++
class Queue {
public:
int data[100];
int head = 0;
int tail = 0;
void enqueue(int x) {
data[tail] = x;
tail++;
}
int dequeue() {
int x = data[head];
head++;
return x;
}
};The editor opens with this code — change it and the chart redraws.
- Language
- C++
- Constructs
- enqueue / dequeue
- Topic
- Classes & methods
- Formats
- Word, Visio, draw.io, PDF, SVG