N
nirvana4lf
this is probably a noob question but wutever. im using the strcpy();
function but it isnt working. here is an example:
#include <stdio.h>
#include <iostream>
#include <string>
#include <stdlib.h>
using namespace std;
int main()
{
string src = "cookie";
string dest = "cool";
string *strcpy(string dest,string src);
cout << dest << endl;
system("pause");
return 0;
}
but it does not connect the two strings!!! please help!!!! :shock:
:shock: :shock:
function but it isnt working. here is an example:
#include <stdio.h>
#include <iostream>
#include <string>
#include <stdlib.h>
using namespace std;
int main()
{
string src = "cookie";
string dest = "cool";
string *strcpy(string dest,string src);
cout << dest << endl;
system("pause");
return 0;
}
but it does not connect the two strings!!! please help!!!! :shock:
:shock: :shock: