Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- char sz1[99] = "sony",
- sz2[99] = " pictures";
- int _strcopy(char*, const char* u);
- /////////////////////////////////////////////////////
- int main() //
- {
- printf("%s\n", sz2);
- strcpy(sz2, sz1);
- printf("%s", sz2);
- }
- /*
- #include <stdio.h>
- char sz[99] = "sony pictures";
- int _strlen(const char* u);
- /////////////////////////////////////////////////////
- int main() //
- {
- int a = 1;
- a = _strlen(sz);
- printf("%d", a);
- }
- /////////////////////////////////////////////////////
- int _strlen(const char* u) //
- {
- int i = 0;
- while( u[++i] ) ;
- return i;
- }
- */
- /*
- /////////////////////////////////////////////////////
- int _strlen(const char* u) //
- {
- int size = -1,
- i = -1;
- L_01: size++;
- i++;
- if(u[i] != 0) goto L_01;
- return size;
- }
- */
- // a = strlen(sz);
- // printf("%d, %s", a, sz);
- //printf("\n%s\n", u);
- //scanf ("%d", &a);
- //#include <string.h>
- /*
- #include <iostream>
- #include <string>
- using namespace std;
- /////////////////////////////////////////////////////////
- int main()
- {
- int n = 0,
- b = 0;
- string str;
- cin >> n;
- for (int i = 0; i < n; i++)
- {
- cin >> str;
- if(str == "++X") b++;
- if(str == "X++") b++;
- if(str == "--X") b--;
- if(str == "X--") b--;
- }
- cout << b;
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement