J
John Smith
I'm looking at some codes I wrote five years ago when taking a C++
course. Having not touched C++ since, I have forgotten most of it.
Now I can't even comprehend my own codes.
I have a question:
What does these two lines in the attached header file do? I
vaguely remember there is something special about the underscores.
#ifndef __RECORD__
#define __RECORD__
///////////////////////////// Record.h
////////////////////////////////////
// Declare a Record struct to be used in file.h
////////////////////////////////////////////////////////////////////////////
#include "utildll.h"
////////////////////////////////////////////////////////////////////////////
//
// Record struct - contains 4 fields: Name, SSN, Birthdate, State
//
////////////////////////////////////////////////////////////////////////////
#ifndef __RECORD__
#define __RECORD__
struct Record
{
char cName [21],
cSSN [12],
cBirthdate [9],
cState [3];
}; // end of Record structure
#endif
course. Having not touched C++ since, I have forgotten most of it.
Now I can't even comprehend my own codes.
I have a question:
What does these two lines in the attached header file do? I
vaguely remember there is something special about the underscores.
#ifndef __RECORD__
#define __RECORD__
///////////////////////////// Record.h
////////////////////////////////////
// Declare a Record struct to be used in file.h
////////////////////////////////////////////////////////////////////////////
#include "utildll.h"
////////////////////////////////////////////////////////////////////////////
//
// Record struct - contains 4 fields: Name, SSN, Birthdate, State
//
////////////////////////////////////////////////////////////////////////////
#ifndef __RECORD__
#define __RECORD__
struct Record
{
char cName [21],
cSSN [12],
cBirthdate [9],
cState [3];
}; // end of Record structure
#endif