DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR CPP
substring to int c++
// Convert 2 character substring from position 0 to an integer
int
num
=
std
::
stoi
(
s
.
substr
(
0
,
2
)
)
;
PREVIOUS
NEXT
Tagged:
#substring
#int
ADD COMMENT
Topic
COMMENT
Name
7+3 =
Submit