Package Index  Table of Contents

CodeCheck ECS C/C++ to Test Suite - 126.cpp

/*
126.  Use C++ streams instead of stdio functions for type safety.
*/
#include 
#include   // don't use



Function Name: main()

main() {
// don't use stdio.h
printf( "hello\n" );
// good
cout << "hello\n";
}

Package Index  Table of Contents

CodeCheck Copyright (c) 1988-2005 by Abraxas Software Inc. (R). All rights reserved.