hello folks,
in visual studio i can just use
using namespace std;
int main()
{
return 0;
}
and in xcode i have to use
using namespace std;
int main(int argc, const char * argv[])
{
return 0;
}
for it to work? how come i cant do the main without any argument in the parenthesis like i did in visual studio?
i tried to do it and get compile failed.
i did use google to search but i only understand what the argument does, but i still don't understand why xcode requires it where as visual studio doesn't.
thanks for any inputs folks
in visual studio i can just use
using namespace std;
int main()
{
return 0;
}
and in xcode i have to use
using namespace std;
int main(int argc, const char * argv[])
{
return 0;
}
for it to work? how come i cant do the main without any argument in the parenthesis like i did in visual studio?
i tried to do it and get compile failed.
i did use google to search but i only understand what the argument does, but i still don't understand why xcode requires it where as visual studio doesn't.
thanks for any inputs folks