Advertisement
lpp

Untitled

lpp
Mar 25th, 2012
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.57 KB | None | 0 0
  1. #include "Alias.hpp"
  2. #include <iostream>
  3. #include <string>
  4.  
  5. using namespace std;
  6.  
  7. Alias <string, int> Al;
  8.  
  9. int main(){
  10.     cout<<Al.Exist("ja");
  11.     Al.SetAlias("ja", 4);
  12.     Al.SetAlias("ne", 8);
  13.  
  14.     cout<<Al.GetName(4)<<endl;
  15.     cout<<Al.Exist("ja")<<endl;
  16.     cout<<Al.Exist(9)<<endl;
  17.     cout<<Al.Exist("ne")<<endl;
  18.     cout<<Al.Exist(4)<<endl;
  19.     cout<<Al<<endl;
  20.     Al.RemAlias(4);
  21.     cout<<Al.Exist(4)<<endl;
  22.     cout<<Al.Exist("ja")<<endl;
  23.     cout<<Al.GetName(8)<<endl;
  24.     cout<<Al.GetNo("ne")<<endl;
  25.  
  26.     cin>>Al;
  27.     cout<<Al<<endl;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement