create file on desktop in c++
<p>i know that to create file in c++  we use following code</p>

<pre><code>#include &lt;iostream&gt;
#include &lt;fstream&gt;
using namespace std;
int main(){

ofstream out;
out.open("exemple.txt");



 return 0;
}
</code></pre>

<p>my question is following i want create example.txt file on desktop or in other directory for simplify let's take desktop  how? please help
like this?</p>

<pre><code>out.open("example.txt","C:\Users\David\Desktop");
</code></pre>
