"Are you saying pS1->length() doesn't work?" yes it didnt
i changed that im sorry i didnt see that the "cls" and why do i get garbage values when i print them?
i really dont know but i have gotten trash values for some reason when i execute but when i used this it works and i taught the length would come as "3" because matt counts as 0 1 2 3?
string s1 = "Matt";
int n1 = 13;
int n2 = 7;
string* pS1=&s1;
int* pN1=&n1;
int* pN2=&n2;
cout << &pS1 << endl; //this is the address of the pointer.
//that is, you now have string** type and are printing that second layer of
//abstraction which is a nonsense value when printed. *pS1 gets you back to s1 from the pointer: eg
//cout << *pS1;
//or cout << *pS1.length(); which is the same as {pS1->lenght() or
//pS1[0].length()} depending on what syntax you like best.
system("pause");
system("cls");
return 0;
}