COMP2113
COMP2113_ENGG1340 Programming technologies and Computer programming II [Section 2BC] [2023]
Loading...
Searching...
No Matches
main2_5.cpp
Go to the documentation of this file.
1
#include <iostream>
2
#include "
bounding.h
"
3
using namespace
std;
4
5
int
main
() {
6
7
int
x1 = 15;
8
int
y1 = 15;
9
int
w1 = 1;
10
int
h1 = 1;
11
12
int
x2 = 10;
13
int
y2 = 5;
14
int
w2 = 1;
15
int
h2 = 1;
16
17
int
x3 = 5;
18
int
y3 = 10;
19
int
w3 = 1;
20
int
h3 = 1;
21
22
mergeBoundingBoxes
(x1, y1, w1, h1, x2, y2, w2, h2);
23
mergeBoundingBoxes
(x1, y1, w1, h1, x3, y3, w3, h3);
24
25
cout << x1 <<
" "
<< y1 <<
" "
<< w1 <<
" "
<< h1 << endl;
26
27
}
mergeBoundingBoxes
bool mergeBoundingBoxes(int &x1, int &y1, int &w1, int &h1, int x2, int y2, int w2, int h2)
Definition
2.cpp:9
bounding.h
main
int main()
Definition
main2_5.cpp:5
Assignment2
P2
main2_5.cpp
Generated on Sun Sep 29 2024 16:39:53 for COMP2113 by
1.12.0