1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include
<iostream>
#include
<string>
using
namespace
std
;
int
main
(
)
{
unsigned
char
a
[
10
]
=
{
'0'
,
'1'
,
'2'
,
'3'
,
'4'
,
'5'
,
'6'
,
'7'
,
'8'
,
'9'
}
;
// 1
string
b
=
"
5
"
;
if
(
a
[
5
]
==
b
[
0
])
{
// 2
cout
<<
"
true
"
<<
endl
;
// 3
}
return
0
;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
g++ -std=c++14 -O3 -Wall -pedantic -pthread main.cpp && ./a.out
true