Hi! In a folder, I've got .h and .cpp files with a .out file as well. Is there any way I can compile the code in the terminal on my windows PC or can I only do it on Linux OS because of the .out file?

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Hi! In a folder, I've got .h and .cpp files with a .out file as well. Is there any way I can compile the code in the terminal on my windows PC or can I only do it on Linux OS because of the .out file? Thank you!

Q
Q 2 4 2 0
File Edit Selection
EXPLORER
✓ LAB1 - SOL
= a.out
G+ AddOperator.cpp
C
G+
C
G+ main.cpp
G+
C
View Go Run
AddOperator.h
DivideOperator.cpp
DivideOperator.h
Operator.cpp
Operator.h
Terminal Help
G+ AddOperator.cpp X
C AddOperator.h
G+ AddOperator.cpp >
apply(int, int)
1 #include "AddOperator.h"
2
3 AddOperator::AddOperator ()
4 {
5 | //ctor
6
}
7
8
9
double AddOperator::apply(int a, int b){
//double AddOperator::apply(int a, int b){
int result = a + b;
return double(result);
10
11
12
13
14 {
15
16
17
/*AddOperator::~AddOperator()
}*/
PROBLEMS
//dtor
G+ DivideOperator.cpp
AddOperator.cpp -lab1-sol - Visual Studio Code
C DivideOperator.h
OUTPUT DEBUG CONSOLE TERMINAL
G+ main.cpp
G+ Operator.cpp
C Operator.h
powershell + ✓ Û
I
T
Transcribed Image Text:Q Q 2 4 2 0 File Edit Selection EXPLORER ✓ LAB1 - SOL = a.out G+ AddOperator.cpp C G+ C G+ main.cpp G+ C View Go Run AddOperator.h DivideOperator.cpp DivideOperator.h Operator.cpp Operator.h Terminal Help G+ AddOperator.cpp X C AddOperator.h G+ AddOperator.cpp > apply(int, int) 1 #include "AddOperator.h" 2 3 AddOperator::AddOperator () 4 { 5 | //ctor 6 } 7 8 9 double AddOperator::apply(int a, int b){ //double AddOperator::apply(int a, int b){ int result = a + b; return double(result); 10 11 12 13 14 { 15 16 17 /*AddOperator::~AddOperator() }*/ PROBLEMS //dtor G+ DivideOperator.cpp AddOperator.cpp -lab1-sol - Visual Studio Code C DivideOperator.h OUTPUT DEBUG CONSOLE TERMINAL G+ main.cpp G+ Operator.cpp C Operator.h powershell + ✓ Û I T
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Linux
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education