SHARE
TWEET

Untitled

a guest Aug 25th, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. int f2(int &y)
  3. {
  4.     return ++y;
  5. }
  6. int f1(int x, int &y)
  7. {
  8.     return x + f2(y);
  9. }
  10. void main()
  11. {
  12.  
  13.     //bool x = 0;
  14.     //bool y = 65;
  15.     //cout << boolalpha << x << " " << noboolalpha << x << endl;
  16.     //cout << boolalpha << y << " " << noboolalpha << y << endl;
  17.     //cout << y << endl;
  18.  
  19.     /*int x = 12, y = 5;
  20.     cout << f2(y)<<" "<<f1(x, y) << endl;*/
  21.     //cout << f2(y) << endl;
  22.     //cout << f1(x, y) << endl;
  23.  
  24.     /*char m[5] = { 'A','B','C','D','E' };
  25.     m[1]+=32;
  26.     cout << m[1] << endl;*/
  27.     /*for (int i = 0; i < 5; i++)
  28.     {
  29.         m[i] = m[i] + 32;
  30.         cout << m[i]  << " ";
  31.     }*/
  32.    
  33. }*/
  34.  
  35.  
  36.  
  37.  
  38.  
  39. //int matrica[1][5] = {};
  40. //int niz1[5] = { 1,2,3,4,5 };
  41. //int niz1[] = { 1,2,3,4,5 };
  42.  
  43. //void main()
  44. //{
  45. //  /*int niz[] = { 1,2,3,4,5 };
  46. //  cout << niz[4] << endl;
  47. //  cout << niz1[4] << endl;
  48. //  cout << niz1[5] << endl;*/
  49. //
  50. //
  51. //
  52. //  //int niz[5] = { 1,2,3,4,5 };
  53. //  //cout << niz[5] << endl;
  54. //  //cout << niz1[5] << endl;
  55. //
  56. //  /*int matrica[2][2] = { {2,'A'},{} };
  57. //  cout << matrica<< endl;
  58. //  cout << matrica[0][0] << endl;
  59. //  cout << matrica[0][1] << endl;
  60. //*/
  61. //
  62. //  /*unsigned short int x = 65535;
  63. //  cout << x << endl;
  64. //  x += 1;
  65. //  cout << x << endl;
  66. //*/
  67. //  //bool x = 0;
  68. //  //cout << boolalpha << " " << noboolalpha << endl;
  69. //  //cout << boolalpha << " " << noboolalpha << endl;
  70. //
  71. //}
  72.  
  73.  
  74.  
  75.  
  76.  
  77. //int x = 5;
  78. //const int y = 5;
  79. //void funkcija()
  80. //{
  81. //  cout << y << endl;
  82. //}
  83. //void funkcija2(int &x)
  84. //{
  85. //  cout << ++x <<endl;
  86. //}
  87. //
  88. //int main()
  89. //{
  90. //  /*int x = 2;
  91. //  int y = 3;
  92. //  cout << ++x <<" "<<++y<<" "<<y++<< endl;
  93. //  cout << x++ << endl;*/
  94. //  /*int x = 2, y = 3;
  95. //  y += x++;
  96. //  cout << y << " " << x << endl;*/
  97. //  /*int x= 3;
  98. //  int y = 3;
  99. //  funkcija();
  100. //  funkcija2(y);*/
  101. //  //cout << ++x << endl;
  102. //  //funkcija2(y);
  103. //  /*int y = 3;
  104. //  funkcija();
  105. //  funkcija2(y);*/
  106. //
  107. //  system("pause");
  108. //  return 0;
  109. //}
  110.  
  111.  
  112.  
  113. //int main()
  114. //{
  115. //  /*int niz[2];
  116. //  cout << niz << endl;
  117. //  cout << niz[0] << " " << niz[1] << endl;
  118. //  cout << &niz << endl;
  119. //  cout << &niz[0] <<" "<<&niz[1]<< endl;*/
  120. //
  121. //  /*int niz[5] = { 1,2,3,4,5 };
  122. //  int niz1[5] = { 1,2,3,4 };
  123. //  int niz2[1] = {};*/
  124. //  //  int niz3[5];
  125. //  //cout << niz << endl;  //adresa
  126. //  //cout << sizeof(niz) << endl; //20
  127. //  //cout << sizeof(niz[0]) << endl;  //4
  128. //  //cout << niz[0] << " " << niz[1] << " " << niz[5] << endl;
  129. //  //cout << "Vrijednost clana niza ";
  130. //  //for (int i = 0; i < 5; i++)
  131. //  //{
  132. //  //  cout << setw(7) << niz[i] << " ";
  133. //  //}
  134. //  //cout << endl;
  135. //  //cout << "Adresa elementa niza ";
  136. //  //for (int i = 0; i < 5; i++)
  137. //  //{
  138. //  //  cout << &niz[i] << " ";
  139. //  //}
  140. //  //cout << endl;
  141. //
  142. //  /*for (int i = 0; i < 5; i++)
  143. //  {
  144. //      cout << niz1[i] << '\t';
  145. //      cout << &niz1[i] << '\n';
  146. //
  147. //  }*/
  148. //  //cout << niz2[0] << endl;
  149. //
  150. //  /*int broj1, broj2;
  151. //  char slov1, slov2, slov3, slov4, slov5;
  152. //  slov1 = 'm', slov2 = 'a', slov3 = 'h', slov4 = 'i', slov5 = 'r';
  153. //
  154. //  cout << slov1 << slov2 << slov3 << slov4 << slov5 << "\n";
  155. //
  156. //  slov1 = slov1 - 32;
  157. //  slov2 = slov2 - 32;
  158. //  slov3 = slov3 - 32;
  159. //  slov4 = slov4 - 32;
  160. //  slov5 = slov5 - 32;
  161. //
  162. //  cout << slov1 << slov2 << slov3 << slov4 << slov5 << endl;
  163. //
  164. //  broj1 = int(slov1) + int(slov2) + int(slov3) + int(slov4) + int(slov5);
  165. //  broj2 = sizeof(slov1) + sizeof(slov2) + sizeof(slov3) + sizeof(slov4) + sizeof(slov5);
  166. //  cout << broj1 << " " << broj2 << endl;
  167. //*/
  168. //
  169. //  system("pause");
  170. //  return 0;
  171. //}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top