By reading this article, you can really get to know the required process of running a .cc file in network simulator 3 along with the guidance of our technical experts. Are you getting interested? Let’s start to glance!
Ns3 Simulation Code Creation
We have to create the ns3 simulation file and store that along with the file extension .cc in scratch folder.
![Creation of Ns3 Simulation Code](https://ns3simulation.com/wp-content/uploads/2023/01/create-cc-file.png)
Run Ns3 Simulation File
Consequently, we have to run the ns3 simulation file through implementing the below mentioned commands and that is stored in the file extension .cc
cd /home/research/ns-allinone-3.28/ns-3.28
sudo ./waf –run MainFile –vis
![](https://ns3simulation.com/wp-content/uploads/2023/01/run-cc-file.png)
Additionally, we have highlighted the result that is acquired through the implementation of the simulation file.
![Result of Executing Ns3 Simulation](https://ns3simulation.com/wp-content/uploads/2023/01/result-for-cc-file-execution-1024x539.png)
By considering these as the reference, run your own .cc file in Ns3. Besides, if something looks like to be problematic, you are always cheered to avail our assistances.