Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
CountWords
_takumi
Aug 2nd, 2019
370
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C++
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
int
CountWords
(
const
string
&
s,
int
str
=
0
,
int
i
=
0
)
{
if
(
str
<=
s.
size
(
)
-
1
)
{
if
(
s
[
str
]
==
' '
)
i
++
;
return
CountWords
(
s, str
+
1
, i
)
;
}
return
i
+
1
;
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
⭐ Free $$$ Mehtod
CSS | 1 min ago | 0.71 KB
2 Day in +12.000$ ⭐
CSS | 1 min ago | 0.71 KB
✅ Crypto admin access
3 min ago | 0.43 KB
⭐ Free Money Method ⭐
CSS | 3 min ago | 0.72 KB
✅ Crypto admin access
3 min ago | 0.43 KB
⭐ Free Money Method ⭐
CSS | 3 min ago | 0.72 KB
⭐ Free $$$ Mehtod
CSS | 12 min ago | 0.71 KB
2 Day in +12.000$ ⭐
CSS | 15 min ago | 0.71 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!