A
Aston Martin
can anyone tell why the hell this code is not compiling ?
#include <tchar.h>
#include<iostream>
#include<vector>
#include<string>
using namespace std;
#ifdef UNICODE
typedef wstring tstring;
typedef wcout tcout;
typedef wcin tcin;
#else
typedef string tstring;
typedef cout tcout;
typedef cin tcin;
#endif
typedef vector<tstring> StringVector;
int cpp_main( StringVector );
int _tmain(int argc, _TCHAR* argv[])
{
StringVector cpp_argv;
for( int i=0; i<argc; i++ )
cpp_argv.push_back( tstring( argv ) );
return cpp_main( cpp_argv );
}
int cpp_main( StringVector argv )
{
for( StringVector::const_iterator iter = argv.begin(); iter !=
argv.end(); iter++ )
tcout << *iter << endl;
return 0;
}
#include <tchar.h>
#include<iostream>
#include<vector>
#include<string>
using namespace std;
#ifdef UNICODE
typedef wstring tstring;
typedef wcout tcout;
typedef wcin tcin;
#else
typedef string tstring;
typedef cout tcout;
typedef cin tcin;
#endif
typedef vector<tstring> StringVector;
int cpp_main( StringVector );
int _tmain(int argc, _TCHAR* argv[])
{
StringVector cpp_argv;
for( int i=0; i<argc; i++ )
cpp_argv.push_back( tstring( argv ) );
return cpp_main( cpp_argv );
}
int cpp_main( StringVector argv )
{
for( StringVector::const_iterator iter = argv.begin(); iter !=
argv.end(); iter++ )
tcout << *iter << endl;
return 0;
}