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:

Qt Code:
  1. char chString[];
To copy to clipboard, switch view to plain text mode 

and a member function:

Qt Code:
  1. void AddString(char chText)
  2. {
  3.  
  4. }
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

Qt Code:
  1. Field(char chFieldText) : m_chText(chFieldText)
  2. {}
To copy to clipboard, switch view to plain text mode