title: C2146: syntax : missing ')' before identifier 's'
body: <p>So I this is a sample code. I just started using Visual C++ 2010 Express Edition, and I keep getting this error along with others but this bothers me a lot.</p>
  
  <blockquote>
    <p>Program 9.cpp(15): error C2146: syntax error : missing ')' before identifier 's'</p>
  </blockquote>
  
  <p>Here's my code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;conio.h&gt;
  #include &lt;string&gt;
  #include &lt;string.h&gt;
  
  using namespace std;
  
  class Salesman
  {
      char name[26];
      float total_sales;
  public:
      Salesman (char *s, float f)
      {
          strcpy(name s);  //Error occurs here. :(
          total_sales=f;
      }
      void prnobject (void)
      {
          cout&lt;&lt;this-&gt;name;
          cout&lt;&lt;"\tHas invoked probject: \n";
      }
  };
  
  void main()
  {
      clrscr();
      salesman Raman ("Raman", 21450), Sita ("Sita", 23190), Vedant ("Vedant", 19142);
      Raman.prnobject();
      Sita.prnobject();
      Vedant.prnobject();
      getch();
  }
  </code></pre>