Skip to main content
Code Review

Return to Answer

replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

Why is "using namespace std;" considered bad practice? Why is "using namespace std;" considered bad practice?

The best advice I can give is to pick a book from this list this list and start to learn the basics.
An overworked c++ style code would look fairly different from what you've been presenting here.

Why is "using namespace std;" considered bad practice?

The best advice I can give is to pick a book from this list and start to learn the basics.
An overworked c++ style code would look fairly different from what you've been presenting here.

Why is "using namespace std;" considered bad practice?

The best advice I can give is to pick a book from this list and start to learn the basics.
An overworked c++ style code would look fairly different from what you've been presenting here.

added 818 characters in body
Source Link

#Conclusion

Let me know what you think about it.

All in all I believe that your implementation isn't acceptable and valid c++ code.
It looks more like c code that is "furnished up" with some basic c++ standard library functionality.

Though even with the c language you would obviously miss the point of #include statements, and separating declaration done in header files, and definition provided in translation units which will be stiched together in the linking proces.

The best advice I can give is to pick a book from this list and start to learn the basics.
An overworked c++ style code would look fairly different from what you've been presenting here.


#Conclusion

Let me know what you think about it.

All in all I believe that your implementation isn't acceptable and valid c++ code.
It looks more like c code that is "furnished up" with some basic c++ standard library functionality.

Though even with the c language you would obviously miss the point of #include statements, and separating declaration done in header files, and definition provided in translation units which will be stiched together in the linking proces.

The best advice I can give is to pick a book from this list and start to learn the basics.
An overworked c++ style code would look fairly different from what you've been presenting here.

added 26 characters in body
Source Link

The comment here (and in other places)

The comment here

The comment here (and in other places)

added 26 characters in body
Source Link
Loading
added 26 characters in body
Source Link
Loading
added 1249 characters in body
Source Link
Loading
added 229 characters in body
Source Link
Loading
Source Link
Loading
lang-cpp

AltStyle によって変換されたページ (->オリジナル) /