Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Spejmer
#include <iostream> #include <string.h> using namespace std; int main() { int posty=0; scanf("%d",&posty); char ludzie[111][22]; for(int i=0;i<posty;i++) { scanf("%s",ludzie[i]); } char nick[22]; scanf("%s",nick); int x=0; for(int i=0;i<posty;i++) { if(strcmp(nick,ludzie[i]) == 0) { x++; } } printf("%d",x); }
run
|
edit
|
history
|
help
0
Test constructors and operators
MY NEW
rstring
max_recursion
VirtualResto
finding counting multiple no that became a no
ThreadContext
ShoppingList
template
Easy String Reverse Example