generate strings with all permutation of character
<p>i have following code</p>

<pre><code>#include &lt;iostream&gt;
#include &lt;string&gt;
using namespace std;
string generate(){
     for (char c1='A';c1&lt;='Z';c1++){
          for (char c2='A';c2 &lt;='Z';c2++){
               for (char c3='A';c3&lt;='Z';c3++){
                    for (char c4='A';c4&lt;='Z';c4++){


                         return  (new string *)(c1) + (new string*)(c2)+(new string*)(c3)+(new string*)(c4);
                    }
               }
          }
     }


}
int main(){




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

<p>i want to generate strings  but here is error</p>

<pre><code>1&gt;------ Build started: Project: string_combinations, Configuration: Debug Win32 ------
1&gt;Build started 9/11/2010 12:42:08 PM.
1&gt;InitializeBuildStatus:
1&gt;  Touching "Debug\string_combinations.unsuccessfulbuild".
1&gt;ClCompile:
1&gt;  string_combinations.cpp
1&gt;c:\users\david\documents\visual studio 2010\projects\string_combinations\string_combinations\string_combinations.cpp(11): error C2064: term does not evaluate to a function taking 1 arguments
1&gt;c:\users\david\documents\visual studio 2010\projects\string_combinations\string_combinations\string_combinations.cpp(11): error C2064: term does not evaluate to a function taking 1 arguments
1&gt;c:\users\david\documents\visual studio 2010\projects\string_combinations\string_combinations\string_combinations.cpp(11): error C2064: term does not evaluate to a function taking 1 arguments
1&gt;c:\users\david\documents\visual studio 2010\projects\string_combinations\string_combinations\string_combinations.cpp(11): error C2064: term does not evaluate to a function taking 1 arguments
1&gt;
1&gt;Build FAILED.
1&gt;
1&gt;Time Elapsed 00:00:00.82
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
</code></pre>

<p>please help i am confused  why  i can't directly convert   from char to string  by  this method  string(char)</p>
