Search
 
SCRIPT & CODE EXAMPLE
 

CPP

how to compile and run cpp code in terminal

# compile cpp_code.cpp
g++ cpp_code.cpp

# run compiled file
./a.out
Comment

how to run a c++ file from terminal linux

// compile the cpp file
g++ main.cpp -o main

// run the executable
./main
Comment

run a c++ file in terminal

c:hello>cl /EHsc hello.cpp
Microsoft (R) C/C++ Optimizing Compiler Version 19.10.25017 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

hello.cpp
Microsoft (R) Incremental Linker Version 14.10.25017.0
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:hello.exe
hello.obj
Comment

PREVIOUS NEXT
Code Example
Cpp :: deal with bad input cpp 
Cpp :: Stream Overloading 
Cpp :: fibonacci search algorithm c++ 
Cpp :: convert char to C 
Cpp :: c++ ide online 
Cpp :: std 
Cpp :: play sound opencv video c++ 
Cpp :: asio broadcast permission 
Cpp :: unreal ensureMsgf example 
Cpp :: C++ Vector Initialization method 02 
Cpp :: minimum no of jump required to reach end of arry 
Cpp :: can derived class access base class non-static members without object of the base class 
Cpp :: displaying m images one window opencv c++ 
Cpp :: hwo to send token on redirection in passport 
Cpp :: vprintf 
Cpp :: qt widget list set selected 
Cpp :: C++ bool 
Cpp :: c++ sort a 2d vector by column 
Cpp :: convert ros time to double 
Cpp :: Max / Min Stack in c++ using stl in O(1) time and space 
Cpp :: subsequence 
Cpp :: c++ variables 
Cpp :: are arrays faster than vectors c++ 
Cpp :: how to put string in array c++ 
Cpp :: create a bitset of 1024 bits, 
C :: java.lang.SecurityException: Permission denied (missing INTERNET permission?) 
C :: c string is int 
C :: sum of list in C 
C :: bash convert find to array 
C :: print ascii value in c 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =