first program added

This commit is contained in:
avinal
2021-02-02 13:44:21 +05:30
parent f59f8e4048
commit a485a36958
2 changed files with 21 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
# ignore everything
*
/*
# dont ingnore these
!.gitignore
!scratch
!scratch/

View File

@@ -0,0 +1,19 @@
/**
* /mnt/z/my_git/sixth-semester/computer_networks/simulation/practice/hello_network.cc
* @author Avinal Kumar
* @since February 02, 2021
*
* Network Simulation Hello World
*/
#include "ns3/core-module.h"
NS_LOG_COMPONENT_DEFINE("HelloNetwork");
int main(int argc, char const *argv[])
{
NS_LOG_UNCOND("Hello Network");
ns3::Simulator::Run();
ns3::Simulator::Destroy();
}