Hi,
I am trying to convert a char pointer to a normal char(somehow copy the strings from the pointer and pass it to the char)
Here is a piece of example on what i want to do
#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
char *namen="Test";
char test[255];
test=namen;
cout<<test<<endl;
return 0;
}
If i run that code i get the following error : "invalid conversion from char** to char"
I know you cant just copy a char pointer to a char but is there a way or a technique to do it?
Thanks in advanced.