title: expected primary-expression before ' arrayName '
body: <p>I dont undersatnd why this expected primary-exception errors are there!!! ... :</p>
  
  <pre><code>Running /home/ubuntu/workspace/sample.cpp
  /home/ubuntu/workspace/sample.cpp: In function ‘int main()’:
  /home/ubuntu/workspace/sample.cpp:50:22: error: expected primary-expression before ‘arrayHelpfull’
            std::string arrayHelpfull[3],
                        ^
  /home/ubuntu/workspace/sample.cpp:51:10: error: expected primary-expression before ‘double’
            double arrayHelpfullPoints[3],
            ^
  /home/ubuntu/workspace/sample.cpp:52:22: error: expected primary-expression before ‘arrayNone’
            std::string arrayNone[3],
                        ^
  /home/ubuntu/workspace/sample.cpp:53:10: error: expected primary-expression before ‘double’
            double arrayNonePoints[3],
            ^
  /home/ubuntu/workspace/sample.cpp:54:23: error: expected primary-expression before ‘arrayHarmfull’
             std::string arrayHarmfull[3],
                         ^
  /home/ubuntu/workspace/sample.cpp:55:11: error: expected primary-expression before ‘double’
             double arrayHarmfullPoints[3],
             ^
  /home/ubuntu/workspace/sample.cpp:61:20: error: expected primary-expression before ‘arrayHelpfull’
          std::string arrayHelpfull[3],
                      ^
  /home/ubuntu/workspace/sample.cpp:62:8: error: expected primary-expression before ‘double’
          double arrayHelpfullPoints[3],
          ^
  /home/ubuntu/workspace/sample.cpp:63:20: error: expected primary-expression before ‘arrayNone’
          std::string arrayNone[3],
                      ^
  /home/ubuntu/workspace/sample.cpp:64:8: error: expected primary-expression before ‘double’
          double arrayNonePoints[3],
          ^
  /home/ubuntu/workspace/sample.cpp:65:21: error: expected primary-expression before ‘arrayHarmfull’
           std::string arrayHarmfull[3],
                       ^
  /home/ubuntu/workspace/sample.cpp:66:9: error: expected primary-expression before ‘double’
           double arrayHarmfullPoints[3],
           ^
  /home/ubuntu/workspace/sample.cpp:74:20: error: expected primary-expression before ‘arrayHelpfull’
          std::string arrayHelpfull[3],
                      ^
  /home/ubuntu/workspace/sample.cpp:75:8: error: expected primary-expression before ‘double’
          double arrayHelpfullPoints[3],
          ^
  /home/ubuntu/workspace/sample.cpp:76:20: error: expected primary-expression before ‘arrayNone’
          std::string arrayNone[3],
                      ^
  /home/ubuntu/workspace/sample.cpp:77:8: error: expected primary-expression before ‘double’
          double arrayNonePoints[3],
          ^
  /home/ubuntu/workspace/sample.cpp:78:21: error: expected primary-expression before ‘arrayHarmfull’
           std::string arrayHarmfull[3],
                       ^
  /home/ubuntu/workspace/sample.cpp:79:9: error: expected primary-expression before ‘double’
           double arrayHarmfullPoints[3],
           ^
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>#include&lt;iostream&gt;
  #include&lt;string&gt;
  #include&lt;fstream&gt;
  
  
  void printingItems(
  
  
      std::string arrayHelpfull[3],
      double arrayHelpfullPoints[3],
      std::string arrayNone[3],
      double arrayNonePoints[3],
       std::string arrayHarmfull[3],
       double arrayHarmfullPoints[3],
      std::string option
  
      ) {
      std::cout &lt;&lt; option &lt;&lt; std::endl;
  
  }
  
  
  int main(){
    std::string arrayHelpfull[3] = {"fruits", "soda" , "candy"};
    double arrayHelpfullPoints[3] = {20.4,50.2,30.0};
  
      std::string arrayNone[3] = {"chair", "shoe" , "pencil"};
    double arrayNonePoints[3] = {0,0,0};
  
      std::string arrayHarmfull[3] = {"meth", "dirtyneedle","ninga"};
    double arrayHarmfullPoints[3] = {-20,-50,-30};
  
    int userChoice = 0;
      while (userChoice != 4) {
  
        std::cout &lt;&lt; "1 - Just Plain Items"
              &lt;&lt; std::endl
              &lt;&lt; "2 - Helpfull Items"
              &lt;&lt; std::endl
              &lt;&lt; "3 - Harmfull Items"
              &lt;&lt; std::endl
              &lt;&lt; "4 - Quit"
              &lt;&lt; std::endl;
  
          std::cin &gt;&gt; userChoice;
  
          switch (userChoice) {
          case 1:
              printingItems(
              std::string arrayHelpfull[3],
              double arrayHelpfullPoints[3],
              std::string arrayNone[3],
              double arrayNonePoints[3],
               std::string arrayHarmfull[3],
               double arrayHarmfullPoints[3],
              "Plain"
           );
              break;
          case 2:
          printingItems(
          std::string arrayHelpfull[3],
          double arrayHelpfullPoints[3],
          std::string arrayNone[3],
          double arrayNonePoints[3],
           std::string arrayHarmfull[3],
           double arrayHarmfullPoints[3],
          "Helpfull"
          );
  
              break;
          case 3:
  
          printingItems(
          std::string arrayHelpfull[3],
          double arrayHelpfullPoints[3],
          std::string arrayNone[3],
          double arrayNonePoints[3],
           std::string arrayHarmfull[3],
           double arrayHarmfullPoints[3],
          "Harmfull"
          );
  
              break;
          }
  
  
      }
  }
  </code></pre>