-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update "hello world" translation test to comply with C++ standards #13
Comments
Konard
changed the title
Update hello world translation test to comply C++ standards
Update "hello world" translation test to comply C++ standards
Dec 14, 2019
Konard
changed the title
Update "hello world" translation test to comply C++ standards
Update "hello world" translation test to comply with C++ standards
Dec 14, 2019
This is the norm old C-style: int main(int argc, char** argv)
{
Work();
} modern C++-style: class Program
{
public:
void Main(std::vector<std::string> args)
{
Work();
}
}
int main(int argc, char* argv[])
{
Program program{};
try
{
program.Main(std::vector<std::string>(argv + 1, argv + argc))
}
catch(...)
{
HandleException(...);
}
} |
@uselessgoddess where did you find this example? |
From a comic post of one popularly company |
I didn't find such example there. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: