About
Contact
QtCreator
KDevelop
Solarized
1
struct
Pair
{
2
int
x
;
3
int
y
;
4
5
Pair
(
int
_x
,
int
_y
) :
x
(
_x
),
y
(
_y
) {}
6
};
7
8
int
addPair
(
Pair
p
)
9
{
10
return
p
.
x
+
p
.
y
;
// Set break point at this line.
11
}
12
13
int
main
() {
14
Pair
p1
(
3
,-
3
);
15
return
addPair
(
p:
p1
);
16
}
17