t char *) ); (! isalpha (s [0]) amp; amp; s [0]!= _ ) {str [0]= 0 raquo ;; len=0; return * this; }i;(i=0;ilt;STR_MAXamp;amp;s[i]!=laquo; raquo;;i++){(!isalnum(s[i])amp;amp;s[i]!=laquo;_raquo;){ str [0]= 0 raquo ;; len=0; return * this; }
} (str, s, i); [i]= 0 raquo ;;=i; * this;
} Identifier :: operator [] (int i)
{( stroka_id :: operator [] (int i) ); ((i lt; 0) || (i gt;=strlen (str))) {( index is too big (small?) ); 0;
} str [i];
} Identifier :: toUpper () {( Identifier member function toUpper () ); (int i=0; str [i]!= 0 raquo ;; i ++) if (islower (str [i])) str [i]=toupper (str [i]);
} :: Tenstring () {( Default Tenstring class constructor );
} :: Tenstring (const char * s) {( Tenstring class constructor (const char *) ); i; (s [0]!= - amp; amp; s [0]!= + amp; amp; (s [0] lt; 0 || s [0] gt; 9 )) return; (i=1; i lt ; STR_MAX amp; amp; s [i]!= 0 raquo ;; i ++) if (s [i] lt; 0 || s [i] gt; 9 ) return; (str, s);=i;
} :: Tenstring (const Tenstring amp; ss): String (ss) {( Copy Tenstring class constructor );
} :: ~ Tenstring () {( Tenstring class destructor );
} Tenstring :: ChangeChar () {( Tenstring member function ChangeChar () ); (len gt; 4)
{report ( False ) ;;
} long int number;=atoll (str); (number gt; 128 || number lt; - 127)
{( True ) ;;
}
{( False ) ;;
}
} Tenstring :: operator=(const Tenstring amp; ss) {( Tenstring operator=(const Tenstring amp;) ); ( amp; ss == this) return * this; ( str, ss.str);=ss.len; * this;
} Tenstring :: operator=(const char * s) {( Tenstring operator=(const char *)raquo;);i;(i=0;ilt;STR_MAXamp;amp;s[i]!=laquo; raquo;;i++){(s[i]!=laquo;0raquo;amp;amp;s[i]!=laquo;1raquo;){ str [0]= 0 raquo ;; len=0; return * this;}
} (str, s, i);=i; [i]= 0 raquo ;; * this;
} Tenstring :: operator == (Tenstring amp; ss) {(atol (this- gt; str) == atol (ss.str)) ( Tenstring operator == (Tenstring amp; ) ); ( Tenstring operator!=(Tenstring amp;) );
} Tenstring :: operator - (Tenstring amp; ss) {( Tenstring operator - (Tenstring amp;) ); len=this- gt; len gt; ss.len? len: ss.len, res; res1 [len];=atol (this- gt; str) -atol (ss.str); (res, res1,10); Tenstring (res1);
}
Додаток 3. Файл Friends.h
# ifndef FRIENDS_H
# define FRIENDS_H
# include listbox.h report (char *);
# endif/* FRIENDS_H */
Додаток 4. Файл Friends.cpp
# include friends.h
# include lt; iostream gt; report (char * s) {:: cout s std :: endl; ListBox * ptr; gt; Add (s);
}
Додаток 5. Файл Desk.h
# ifndef DESK_H
# define DESK_H
# include menu.h
# include listbox.h
# include mystring.h
# define LIMIT 8INSTANCE {* item; classId;
}; Desk {: ClassName [3] [12]; mn, mn1, mn2, mn3, mn4, mn5; * lbx1, * lbx2; inst [LIMIT]; count;
: ();
~Desk();PaintBg(void);Go(void);Command(void);setCount(void);Init(void);numInput(int,int,int,int,char *); strInput (int, int, int, int, char *, char *, int); str2int (char *, int amp;); dataError (int, int, int, int); * CreateInstance (int, char * ); numResult (int, int, int, int, char *, int); Msg (int, int, int, int, char *);strclear(void);sidToUpper(void);sidAssign(void);sidSub(void);Ind(void);sbtInd(void);sbtChangeChar(void);sbtAssign(void);sbtSub(void);
};
# endif/* DESK_H */
Додаток 6. Файл Desk.cpp
# include lt; cstdlib gt;
# include lt; cstring gt;
# include lt; cstdio gt;
# include lt; conio.h gt;
# include lt; windows.h gt;
# include lt; graphics.h gt;
# include lt; iostream gt;
# include lt; string gt;
# include desk.h namespace std; :: Desk () {// конструктор ();