Let's say I have a function called dummy defined in the following way:
void dummy(CMyString& mystr)
{
mystr.print(); //show
}
CMyString would be my own implementation of strings using an array of chars.
int main()
{
dummy("This is a test!");
return 0;
}
I'd like the following program to print out : "This is a test!". Is this possible?