Advertisement
dllbridge

Untitled

Nov 6th, 2023
551
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.25 KB | None | 0 0
  1.  
  2.  
  3. #include     <stdio.h>
  4.  
  5.  
  6.  
  7.  
  8. ////////////////////////////////////////////////////////
  9. int main()                                            //
  10. {
  11.    
  12.     unsigned __int8 c = 'a';
  13.    
  14.    
  15.    
  16.    
  17.     for(int i = 252; i < 261; i++)
  18.     {
  19.        
  20.         c = i;
  21.        
  22.         printf("%4d\n", c);        
  23.     }
  24.    
  25. }
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51. /*
  52. #include     <stdio.h>
  53.  
  54.  
  55.  
  56.  
  57. ////////////////////////////////////////////////////////
  58. int main()                                            //
  59. {
  60.    
  61.     char c = 'a';
  62.    
  63.    
  64.    
  65.    
  66.     for(int i = -125; i > -131; i--)
  67.     {
  68.        
  69.         c = i;
  70.        
  71.         printf("%4d\n", c);        
  72.     }
  73.    
  74. }
  75.  
  76.  
  77.  
  78. */
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118. /*
  119. #include     <stdio.h>
  120. //#include     <cstring>
  121.  
  122. void _strcat(char *p1, char *p2);
  123.  
  124. ////////////////////////////////////////////////////////
  125. int main()                                            //
  126. {
  127.    
  128.     char sz [17]  = "how 777 ";
  129.     char sz1[17]  = "are ";
  130.     char sz2[17]  = "you" ;
  131.  
  132.  
  133.    _strcat(sz, sz1);
  134.    _strcat(sz, sz2);
  135.  
  136.  
  137.     printf(sz);
  138.  
  139. return 0;
  140. }
  141.  
  142.  
  143. //////////////////////////////////////
  144. void _strcat(char *p1, char *p2)    //
  145. {
  146.    
  147.       int nLen = 0;  // strlen(p1);
  148.    
  149.       while(p1[++nLen] );
  150.    
  151.       for(int i = 0; p2[i] != 0; i++)
  152.       {
  153.          p1[nLen] = p2[i];
  154.          nLen ++;                                     // nLen += 1; // nLen = nLen + 1;
  155.       }
  156.       p1[nLen] = '\0';  //0;  
  157. }
  158.  
  159.  
  160. */
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.    // printf("nLen = %d\n", nLen);
  176.  
  177.  
  178.  
  179.  
  180.  
  181. /*
  182. #include     <stdio.h>
  183. #include     <cstring>
  184.  
  185.  
  186. ////////////////////////////////////////////////////////
  187. int main()                                            //
  188. {
  189.    
  190.     char sz [17]  = "how 777 ";
  191.     char sz1[17]  = "are ";
  192.     char sz2[17]  = "you" ;
  193.  
  194.  
  195.     strcat(sz, sz1);
  196.     strcat(sz, sz2);
  197.  
  198.  
  199.     printf(sz);
  200.  
  201. return 0;
  202. }
  203.  
  204.  
  205.  
  206. */
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237. /*
  238. #include  <iostream>
  239. #include    <string>
  240. using namespace std;
  241.  
  242. ////////////////////////////////////////////////////////
  243. int main()                                            //
  244. {
  245.    
  246.     string sz   = ("how ");
  247.     string sz1  = ("are ");
  248.     string sz2  = ("you" );
  249.  
  250.     cout << sz ;
  251.     cout << sz1;
  252.     cout << sz2;
  253.  
  254. return 0;
  255. }
  256.  
  257.  
  258.  
  259. */
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement