Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <vector>
- #include <regex>
- using namespace std;
- int main(int argc, char** argv) {
- string komenda;
- vector <string> funkcje;
- int at_at;
- cin >> komenda;
- regex test ("[(log|sin|cos|exp)@]*");
- cout << regex_match(komenda, regex("[(log|sin|cos|exp)@]*"));
- do {
- at_at = komenda.find("@");
- funkcje.push_back(komenda.substr(0, at_at));
- komenda = komenda.substr(at_at + 1, komenda.length());
- //cout << komenda;
- } while (at_at!=std::string::npos);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement