Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- ////////////////////////////////////////////////////////
- int main() //
- {
- unsigned __int8 c = 'a';
- for(int i = 252; i < 261; i++)
- {
- c = i;
- printf("%4d\n", c);
- }
- }
- /*
- #include <stdio.h>
- ////////////////////////////////////////////////////////
- int main() //
- {
- char c = 'a';
- for(int i = -125; i > -131; i--)
- {
- c = i;
- printf("%4d\n", c);
- }
- }
- */
- /*
- #include <stdio.h>
- //#include <cstring>
- void _strcat(char *p1, char *p2);
- ////////////////////////////////////////////////////////
- int main() //
- {
- char sz [17] = "how 777 ";
- char sz1[17] = "are ";
- char sz2[17] = "you" ;
- _strcat(sz, sz1);
- _strcat(sz, sz2);
- printf(sz);
- return 0;
- }
- //////////////////////////////////////
- void _strcat(char *p1, char *p2) //
- {
- int nLen = 0; // strlen(p1);
- while(p1[++nLen] );
- for(int i = 0; p2[i] != 0; i++)
- {
- p1[nLen] = p2[i];
- nLen ++; // nLen += 1; // nLen = nLen + 1;
- }
- p1[nLen] = '\0'; //0;
- }
- */
- // printf("nLen = %d\n", nLen);
- /*
- #include <stdio.h>
- #include <cstring>
- ////////////////////////////////////////////////////////
- int main() //
- {
- char sz [17] = "how 777 ";
- char sz1[17] = "are ";
- char sz2[17] = "you" ;
- strcat(sz, sz1);
- strcat(sz, sz2);
- printf(sz);
- return 0;
- }
- */
- /*
- #include <iostream>
- #include <string>
- using namespace std;
- ////////////////////////////////////////////////////////
- int main() //
- {
- string sz = ("how ");
- string sz1 = ("are ");
- string sz2 = ("you" );
- cout << sz ;
- cout << sz1;
- cout << sz2;
- return 0;
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement