title: How to make a folder/directory
body: <p>How do I make a directory/folder with c++. I've tried to use the mkdir() without success. I want to write a program that cin's a variable and then uses this variable to create sub-directory's and files with in those.
  my current code. It says the + operator in the mkdir() says error no operand</p>
  
  <pre><code>char newFolder[20];
  
  cout &lt;&lt; "Enter name of new project without spaces:\n";
  cin &gt;&gt; newFolder;
  string files[] = {"index.php"};
  string dir[] = {"/images","/includes","/includes/js","/contact","about"};
  
  for (int i = 0; i&lt;=5; i++){
  mkdir(newFolder + dir[i]);
  ofstream write ("index/index.php");
  write &lt;&lt; "&lt;?php \n \n \n ?&gt;";
  write.close();
  }
  </code></pre>