Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int type_definition (string s)
- {
- bool flag = false;
- if ((s[0] == 'R') and (s.find('C') > 0))
- {
- flag = true;
- }
- if ((int(s[1]-'0') >= 0) and (int(s[1]-'0') <=9) and (flag == true))
- {
- return 1;
- }
- else
- {
- return -1;
- }
- }
- void (string aa_number)
- {
- string RXCY = R;
- string numberPart;
- for (int i = 0; i < )
- }
- int main()
- {
- string str;
- cin >> str;
- cout << type_definition(str);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement