Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- #include <string.h>
- using namespace std;
- void myStrcpy(char* a,const char b[])
- {
- int length=strlen(b);
- for (int i=0;i<length;i++)
- {
- a[i]=b[i];
- }
- a[length]=0;
- }
- int main()
- {
- char str[50];
- myStrcpy(str,"232323232332");
- cout<<str;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement