It
was during one of my own personal Sherlock Holmes like cocaine frenzy
moments where i crave for work, work and work (oh!, and i think i forget
to mention that i use Kali Linux in practically all my work, unless
it's gaming) and where the lines between reality and imagination blurs
and fades into oblivion. I think i was fatigued from the many days i
sometimes go with without ever sleeping a wink for i don't consider the
following work exactly imaginatively impressive.
But i did it anyway.
Initially
the problem was making a c++ program that could generate and display
all the possible IP addresses available starting from 0.0.0.0 to
255.255.255.255. The task later evolved into comparing how that could be
achieved in c++ code and in python code. Then there's comparing which
one is faster at executing the task.
The Code
Well, below is the c++ code;
#include <iostream>
#include <ctime>
using namespace std;
const int MIN = 255
const int MAX = MIN + 1;
int a,b,c,d;