Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include "KontrolnoMn.h"
- #include <cmath>
- #include<cstring>
- using namespace std;
- int fillSet(char * set, unsigned sz) {
- for (size_t i = 0; i < sz; i++)
- {
- cin >> set[i];
- }
- return 0;
- }
- int print(char * set, unsigned sz) {
- for (size_t i = 0; i < sz; i++)
- {
- cout << set[i] << " ";
- }
- cout << endl;
- return 0;
- }
- int Count_Nums_toRemove(char *set, unsigned size,char *setA,unsigned szB) {
- bool f = false;
- int cnt = 0;
- for (size_t i = 0; i < size; i++)
- {
- f = false;
- for (size_t j =0; j < szB; j++)
- {
- if (set[i] != setA[j]) {
- f = true;
- break;
- }
- }
- if (f) {
- cnt++;
- }
- }
- cout << "The number is:" << " " << cnt << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement