A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
hello-simulator.cc
Go to the documentation of this file.
1
/*
2
* SPDX-License-Identifier: GPL-2.0-only
3
*/
4
5
#include "ns3/core-module.h"
6
7
using namespace
ns3
;
8
9
NS_LOG_COMPONENT_DEFINE
(
"HelloSimulator"
);
10
11
int
12
main(
int
argc
,
char
*
argv
[])
13
{
14
NS_LOG_UNCOND
(
"Hello Simulator"
);
15
return
0;
16
}
NS_LOG_UNCOND
#define NS_LOG_UNCOND(msg)
Output the requested message unconditionally.
Definition
log-macros-enabled.h:253
NS_LOG_COMPONENT_DEFINE
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition
log.h:191
ns3::Create
Ptr< T > Create(Ts &&... args)
Create class instances by constructors with varying numbers of arguments and return them by Ptr.
Definition
ptr.h:436
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
examples
tutorial
hello-simulator.cc
Generated on Mon Dec 15 2025 15:21:47 for ns-3 by
1.9.8