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?

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter13: File Input And Output
Section: Chapter Questions
Problem 4RQ
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT