Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Alias.hpp"
- #include <iostream>
- #include <string>
- using namespace std;
- Alias <string, int> Al;
- int main(){
- cout<<Al.Exist("ja");
- Al.SetAlias("ja", 4);
- Al.SetAlias("ne", 8);
- cout<<Al.GetName(4)<<endl;
- cout<<Al.Exist("ja")<<endl;
- cout<<Al.Exist(9)<<endl;
- cout<<Al.Exist("ne")<<endl;
- cout<<Al.Exist(4)<<endl;
- cout<<Al<<endl;
- Al.RemAlias(4);
- cout<<Al.Exist(4)<<endl;
- cout<<Al.Exist("ja")<<endl;
- cout<<Al.GetName(8)<<endl;
- cout<<Al.GetNo("ne")<<endl;
- cin>>Al;
- cout<<Al<<endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement