Click here to Skip to main content
15,881,380 members
Articles / Programming Languages / C++

Error Detection Based on Check Digit Schemes

Rate me:
Please Sign up or sign in to vote.
4.72/5 (27 votes)
27 Nov 2007CPOL12 min read 90.7K   2.9K   50  
A Survey of Popular Check Digit Schemes
// stdafx.h : include file for standard system include files,
//  or project specific include files that are used frequently, but
//      are changed infrequently
//

#if !defined(AFX_STDAFX_H__1ED56D54_93E7_4F01_B188_B642C42D25FB__INCLUDED_)
#define AFX_STDAFX_H__1ED56D54_93E7_4F01_B188_B642C42D25FB__INCLUDED_

#include <tchar.h>      // _T( )

#include <iostream>     // cin, cout, cerr
#include <sstream>      // new and improved
#include <string>       // string

using namespace std;

#ifdef UNICODE
#  define _tcout std::wcout
#  define _tcerr std::wcerr
#  define _tcin  std::wcin
#  define _tclog std::wclog
#else
#  define _tcout std::cout
#  define _tcerr std::cerr
#  define _tcin  std::cin
#  define _tclog std::clog
#endif

#ifdef UNICODE
#  define _tstringbuf     std::wstringbuf
#  define _tistringstream std::wistringstream
#  define _tostringstream std::wostringstream
#else
#  define _tstringbuf     std::stringbuf
#  define _tistringstream std::istringstream
#  define _tostringstream std::ostringstream
#endif

#ifdef UNICODE
#  define _tstring std::wstring
#else
#  define _tstring std::string
#endif

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_STDAFX_H__1ED56D54_93E7_4F01_B188_B642C42D25FB__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Systems / Hardware Administrator
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions