Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. #include <iostream>
  2. #define MAX 100
  3. using namespace std;
  4.  
  5.  
  6.  
  7. int main () {
  8.  
  9. int & operator[]( char tmpKod)
  10.  
  11. { if (tmpKod >= 0&&tmpKod < count )
  12. return elem [tmpKod];
  13. else
  14. { cout << " Nadvor od opseg " << endl ;
  15. exit (-1)
  16.  
  17. int niza[MAX];
  18.  
  19. int bit;
  20. cin >> bit;
  21.  
  22. for ( int i = 0; i < bit; ++i )
  23. {
  24. char tmpSimbol;
  25. string tmpKod;
  26. cin >> tmpSimbol;
  27. cin >> tmpKod;
  28.  
  29. niza[ tmpKod ] = tmpSimbol;
  30. }
  31.  
  32.  
  33.  
  34. return 0;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement