title: Tokenizer - Initialization with '{...}' expected for aggregate object
body: <p>I'm working on creating a program that will take a fraction and reduce it to it's lowest terms. I'm using a tokenizer to parse through the string (In my case I'm reading in a string) and separate the numerator from the denominator.</p>
  
  <p>I'm getting the following error, and am looking for an explanation to why it's happening. I've looked up people with similar problems, but I'm still a beginner looking for a basic explanation and suggestion for an alternative way to solve it.</p>
  
  <pre><code>RationalNum() // Default
      :numerator(0), denominator(1){}
  RationalNum(int num) // Whole Number
      :numerator(num), denominator(1){}
  RationalNum(int num, int denom) // Fractional Number
      :numerator(num), denominator(denom){}
  RationalNum(string s)
  {
      int num = 0;
      char str[] = s;
  }
  </code></pre>
  
  <p>I know the problem lies in the setting the char array to s.</p>
  
  <p>Thanks for taking the time to look at this.</p>