mirror of
https://github.com/avinal/sixth-semester.git
synced 2026-01-09 22:58:35 +05:30
first program added
This commit is contained in:
4
computer_networks/simulation/.gitignore
vendored
4
computer_networks/simulation/.gitignore
vendored
@@ -1,6 +1,6 @@
|
||||
# ignore everything
|
||||
*
|
||||
/*
|
||||
|
||||
# dont ingnore these
|
||||
!.gitignore
|
||||
!scratch
|
||||
!scratch/
|
||||
19
computer_networks/simulation/scratch/hello_network.cc
Normal file
19
computer_networks/simulation/scratch/hello_network.cc
Normal 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();
|
||||
}
|
||||
Reference in New Issue
Block a user