Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char str(char *str[]) {
- int j = 0;
- for (int i = 0; i < sizeof(str) / sizeof(*str); i++) {
- if (str[i] == "a") {
- j++;
- }
- }
- return j;
- }
- Вызов функции в main.
- cout << str("saassssasasasass") << endl;
- char str(char *str[]) {
- char str(char const * str) {
- if (str[i] == "a") {
- if (str[i] == 'a') {
- for (int i = 0; i < sizeof(str) / sizeof(*str); i++) {
- for (int i = 0; i < strlen(str); i++) {
- int str(const char *str)
- {
- int count = 0;
- for(; *str; str++)
- if (*str == 'a') ++count;
- return count;
- }
Add Comment
Please, Sign In to add comment