using namespace std;
cout << "Welcome to C++\n";
system("pause"); // to pause the console, so that it will not auto close after executing
#include <iostream> is the preprocessor, it includes the iostream library, the library contains codes that enable us to use functions such as cout.
using namespace std is included so that we do not have to type
std::cout , instead of cout. The
std:: can be omitted because of this.
main is the name of the first function that will run when we […]
Before we understand Dijkstra algorithm, let’s introduce the concept of graph. A graph consists of vertices and edges connecting them. A graph has many applications because it mimics the connection between nodes/ vertices in network, social media, map with buildings as nodes and roads as edges connecting them, etc. Dijkstra algorithm is an algorithm to […]
This is due to .exe created of your cpp file is being examined by antivirus, you usually have to restart before the antivirus let go of the .exe. So, to solve this, you need to deactivate your antivirus so that your compiler can delete .exe after used. Same error but I don’t see anyone giving […]