Learn something about the language and how it works before you post code like that here and ask for help. How are we to have a clue what is going on in your main program? Where are your function declarations? Include lines? Tabbing? Space between char*aString=string somewhere? Take a look at a standard C tutorial and you should be OK.
using namespace std;
void function(char *name);
void function(char *name)
cout<< "enter name: ";
//cin >> name;
cin.get(name,19); // so you can get more than one word in your string
cout << name;
**how to solve invalid keystore error in android studio here is error report----------------------->
here is error report--------> error:Error:java.lang.RuntimeException: com.android.ide.common.signing.KeytoolException: Failed to read key palash from store "D:\MyApplication3.idea\workspace.xml": Invalid keystore format ...