Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Dec 11th, 2017
82
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Vala
0.16 KB
| None
|
0
0
raw
download
clone
embed
print
report
void
main
(
)
{
string
x
=
"abcde"
;
stdout.
printf
(
"%d
\n
"
, x.
index_of
(
"bcd"
)
)
;
//prints 1
stdout.
printf
(
"%d
\n
"
, x.
last_index_of
(
"bcd"
)
)
;
//also prints 1
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 3 sec ago | 0.39 KB
EngoSpy
Lua | 3 min ago | 44.38 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 💰
GetText | 19 min ago | 0.38 KB
Untitled
JavaScript | 27 min ago | 0.30 KB
Triplet Solution
C++ | 51 min ago | 0.62 KB
reactor_controller
Lua | 60 min ago | 0.45 KB
Untitled
C++ | 1 hour ago | 0.47 KB
exemple
C# | 1 hour ago | 0.20 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!