Re: [Bug c++/44399] New: Problem with command line arguments in windows

2010-06-03 Thread Andrew Pinski
Sent from my iPhone On Jun 3, 2010, at 5:15 AM, "alexandrfedorov at gmail dot com" > wrote: I'm trying to write windows console application working with directories, and i discover that arguments processed not right. For example: #include int main ( int argc, char *argv[], char *envp[] )

[Bug c++/44399] New: Problem with command line arguments in windows

2010-06-03 Thread alexandrfedorov at gmail dot com
I'm trying to write windows console application working with directories, and i discover that arguments processed not right. For example: #include int main ( int argc, char *argv[], char *envp[] ) { std::cout << "you have " << argc << " arguments"; } resulting: >a.exe "a a" you have 2 arguments