Pastebin by Anonymous 06.02.2010 21:31:43
Download | PermaLink | New
#include <iostream>
#include <cstdio>
using namespace std;
void mystrcpy(char *Dest, char *Source);
int main()
{
char str[20] = "This is a string";
char str2[20];
mystrcpy(str2, str);
cout << str2 << endl;
cout << "\n\n";
system("pause");
return 0;
}
void mystrcpy(char *Dest, char *Source)
{
int i;
for (i=0;Source[i];i++) Dest[i]=Source[i];
}
|
Pastebin bearbeiten
Note: your pastebin is public viewable! Do not post passwords, etc.