Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int zint (std::vector <int> w, int wartosc)
- {
- int x;
- for (x = 0; x < w.size(); x++) {
- if (wartosc == w[x]) {
- return x;
- }
- }
- return -1;
- }
- int zstr (std::vector <AnsiString> w, AnsiString wartosc)
- {
- int x;
- for (x = 0; x < w.size(); x++) {
- if (wartosc == w[x]) {
- return x;
- }
- }
- return -1;
- }
- int zdbl (std::vector <double> w, double wartosc)
- {
- int x;
- for (x = 0; x < w.size(); x++) {
- if (wartosc == w[x]) {
- return x;
- }
- }
- return -1;
- }
- int zbool (std::vector <bool> w, bool wartosc)
- {
- int x;
- for (x = 0; x < w.size(); x++) {
- if (wartosc == w[x]) {
- return x;
- }
- }
- return -1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement