Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ConsoleApplication4.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include <map>
- #include <iostream>
- #include <string>
- #include <vector>
- using namespace std;
- int main()
- {
- /*ring imie;
- int nr;
- map<string, int> ksiazka;
- ksiazka["patryk"] = 512477903;
- while (true)
- {
- cout << "podaj imie: " << endl;
- cin >> imie;
- if (imie == "exit") {
- break;
- system("pause");
- }
- else if (ksiazka[imie] = !0)
- {
- cout << ksiazka[imie] << endl;
- }
- else
- {
- cout << "podaj num tel: ";
- cin >> nr;
- ksiazka[imie] = nr;
- }
- }
- /*cout << "podaj imie: " << endl;
- cin >> imie;
- cout << "podaj numer: " << endl;
- cin >> nr;
- ksiazka[imie] == nr;
- }*/
- // zad 2
- string tekst;
- int ileliterA;
- cin >> tekst;
- for (int i = 0; i < tekst.size(); i++)
- {
- if (tekst[i] = 'a')
- ileliterA++;
- else continue;
- }
- return 0;
- }
- //zad 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement