Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to run cpp file

# Open Terminal: 

# Type: 
g++ --version

# If the command is not recognized: 
sudo apt-get install g++ 
g++ --version # should work now 

# If the command is recognized
mkdir tmp 
cd tmp 
touch main.cpp 
# open main.cpp using vi, vim, gedit, etc
# Type in a hello world program: 
# https://www.tutorialspoint.com/cplusplus-hello-world-program

# Once this has been done, type in: 
g++ main.cpp
./a.out 
Comment

PREVIOUS NEXT
Code Example
Shell :: get ssh recovery code 
Shell :: put all folders with specific name in git ignore 
Shell :: To find MTP devices in Power Shell use this command: 
Shell :: npm start prevent browser 
Shell :: check powershell profile create if not exists 
Shell :: how to open fileexplorer from terminal in ubuntu 
Shell :: install brew linux mint 
Shell :: conda install sox 
Shell :: pylint install pi 
Shell :: swipl gui mac 
Shell :: how to install centos 9 stream 
Shell :: change default browser is not working in manjaro 
Shell :: imagemagick visual diff pdf 
Shell :: piping results as argument linux 
Shell :: the repo coud not download 
Shell :: fdart string to uri 
Shell :: mana toolkit install 
Shell :: Rename all items in a directory to lower case 
Shell :: windows openssh powershell core 
Shell :: git checkout specific file types 
Shell :: ncdu exclude 
Shell :: can i setup 2fa for my ubuntu ssh 
Shell :: git the .git folder (to manage your local repo cloned many remote repos) 
Shell :: pi docker installieren 
Shell :: set-executionpolicy unrestricted permission denied 
Shell :: how to install .net on pop os 
Shell :: This command will base the newly created branch on the existing branch specified in the command 
Shell :: Let NetworkManager manage all devices on wsl 2 
Shell :: How would you make changes to a repository on GitHub inside a bash terminal? 
Shell :: intergrete $var in the middle of a file name bash 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =