Advertisement
dllbridge

Untitled

Sep 16th, 2024
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.00 KB | None | 0 0
  1.  
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. #include   <stdio.h>
  6.  
  7.  
  8. char sz[33] = "SONY";
  9.  
  10.  
  11.  
  12. /////////////////////////////////////////
  13. int main()                             //    
  14. {
  15.    
  16.    
  17.     printf("sz[0] =  %d = %c\n", sz[0], sz[0]);
  18.     printf("sz[1] =  %d = %c\n", sz[1], sz[1]);    
  19.     printf("sz[2] =  %d = %c\n", sz[2], sz[2]);
  20.     printf("sz[3] =  %d = %c\n", sz[3], sz[3]);      
  21.     printf("sz[4] =  %d = %c\n", sz[4], sz[4]);    
  22. }
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44. /*
  45. #include <iostream>
  46. using namespace std;
  47.  
  48. #include   <stdio.h>
  49.  
  50.  
  51. char sz[33] = "SONY";
  52.  
  53.  
  54.  
  55. /////////////////////////////////////////
  56. int main()                             //    
  57. {
  58.    
  59.    
  60.     printf("sz[0] =  %d\n", sz[0]);
  61.     printf("sz[1] =  %d\n", sz[1]);    
  62.     printf("sz[2] =  %d\n", sz[2]);
  63.     printf("sz[3] =  %d\n", sz[3]);      
  64.     printf("sz[4] =  %2d\n",sz[4]);    
  65. }
  66.  
  67.  
  68. */
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76. /*
  77. #include <iostream>
  78. using namespace std;
  79.  
  80. #include   <stdio.h>
  81.  
  82.  
  83. char sz[33] = "SONY";
  84.  
  85.  
  86.  
  87. /////////////////////////////////////////
  88. int main()                             //    
  89. {
  90.    
  91.    
  92.     printf("sz[0] = %c\n", sz[0]);
  93.     printf("sz[1] = %c\n", sz[1]);    
  94.     printf("sz[2] = %c\n", sz[2]);
  95.     printf("sz[3] = %c\n", sz[3]);      
  96.    
  97. }
  98.  
  99. */
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119. /*
  120.  
  121. #include <iostream>
  122. using namespace std;
  123.  
  124.  
  125. int foo();
  126.  
  127. char sz[33];
  128.  
  129. int n = 92;
  130.  
  131. /////////////////////////////////////////
  132. int main()
  133. {
  134.    
  135.    
  136.    
  137.    
  138.     cin >> sz;
  139.    
  140.     cout << sz << endl;
  141.     cout << foo() << endl;  
  142.    
  143. return 0;
  144. }
  145.  
  146.  
  147.  
  148.  
  149.  
  150. ///////////////////////////////////////////
  151. int foo()                                //    
  152. {
  153.     n = n + 2;
  154.    
  155.  return   n;
  156. }
  157.  
  158. */
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169. /*
  170. #include <iostream>
  171. using namespace std;
  172.  
  173.  
  174.  
  175.  
  176. /////////////////////////////////////////
  177. int main()
  178. {
  179.    
  180.    
  181.     char sz[33];
  182.    
  183.     cin >> sz;
  184.    
  185.     cout << sz << endl;
  186.    
  187.    
  188. return 0;
  189. }
  190.  
  191.  
  192.  
  193.  
  194.  
  195. */
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement