23 operator << (NdbOut & out,
const Employee_t & emp){
24 out << emp.EmpNo <<
" \"" << emp.FirstName <<
"\" \""
25 << emp.LastName <<
"\"";
31 if(e1.EmpNo != e2.EmpNo)
33 if(strcmp(e1.FirstName, e2.FirstName) != 0)
35 return strcmp(e1.LastName, e2.LastName) == 0;
40 static int updown = 0;
42 for(
int i = 0;
i<strlen(emp.FirstName);
i++)
43 toupper(emp.FirstName[
i]);
45 for(
int i = 0;
i<strlen(emp.LastName);
i++)
46 toupper(emp.LastName[
i]);
48 for(
int i = 0;
i<strlen(emp.FirstName);
i++)
49 tolower(emp.FirstName[
i]);
51 for(
int i = 0;
i<strlen(emp.LastName);
i++)
52 tolower(emp.LastName[
i]);
61 for(
int i = 0;
i<rows;
i++){
62 if(!(data1[
i] == data2[
i])){
63 ndbout << data1[
i] << endl
71 for(
int i = 0;
i<rows;
i++){
78 operator << (NdbOut & out,
const Address_t & adr){
79 out << adr.EmpNo <<
" \"" << adr.StreetName <<
"\" "
80 << adr.StreetNo <<
" \"" << adr.City <<
"\"";
87 if(a1.EmpNo != a2.EmpNo)
89 if(a1.StreetNo != a2.StreetNo)
91 if(strcmp(a1.StreetName, a2.StreetName) != 0)
93 return strcmp(a1.City, a2.City) == 0;
99 static int updown = 0;
101 for(
int i = 0;
i<strlen(emp.StreetName);
i++)
102 toupper(emp.StreetName[
i]);
104 for(
int i = 0;
i<strlen(emp.City);
i++)
105 toupper(emp.City[
i]);
107 for(
int i = 0;
i<strlen(emp.StreetName);
i++)
108 tolower(emp.StreetName[
i]);
110 for(
int i = 0;
i<strlen(emp.City);
i++)
111 tolower(emp.City[
i]);
113 emp.StreetNo *= emp.EmpNo;
121 for(
int i = 0;
i<rows;
i++){
122 if(!(data1[
i] == data2[
i])){
123 ndbout << data1[
i] << endl
131 for(
int i = 0;
i<rows;
i++){