Tools
quality.txt
Associated article: Code Quality Improvement
Tags: C/C++ Tools Design
Published source code and related files accompanying the article by JunHo Yoon and YoonKyu Jang in which they show how coding standards helps you improve code readability, produce consistent code, and prevent error-prone coding styles. Robert Buckley adds a note on MISRA-C and coding standards.
Code Quality Improvement
by JunHo Yoon and YoonKyu Jang
Listing One
class ResourceManager
{
ResourceManager(); // allocate only object
result Contruct(); // allocate resources
// 'result' contains error code.
};
int main()
{
// Two phase construction
ResourceManager aObject;
if (aObject.Contruct() == FAIL)
printf("Resource allocation ...


