Been reading about chars, and arrays and all that for a while now, and googling my questions but still can't figure this one out:
1.) How to go about creating a char member variable in a class. I've got a member variable:
char chString[];
char chString[];
To copy to clipboard, switch view to plain text mode
and a member function:
void AddString(char chText)
{
}
void AddString(char chText)
{
}
To copy to clipboard, switch view to plain text mode
What do I need to do in the add text function to be able to add text to the member variable?
2.) And is there some way of creating a constructor that would allow me to populate the char string member from the get go? Simply doing this isn't working
Field(char chFieldText) : m_chText(chFieldText)
{}
Field(char chFieldText) : m_chText(chFieldText)
{}
To copy to clipboard, switch view to plain text mode
Bookmarks