(Gast)
n/a Beiträge
|
Re: Strings kopieren ?
1. Apr 2008, 19:31
Code:
void test(char* string)
{
strcpy(string, "HELLO");
std::cout << string << std::endl;
}
int main(void)
{
char nix[256];
test(nix);
std::cout << nix << std::endl;
getch();
return 0;
}
|
|
Zitat
|