Розробка власного класу STRING

Курсовой проект - Компьютеры, программирование

Другие курсовые по предмету Компьютеры, программирование

24; (5), 5 6 (10) (13). (30) - (36).

. , :

 

(1)

(2)

(3)

(4)

(5)

(6) temp=new clsString ( (long) 2007);

cout<<*temp<<endl;

temp->~clsString ();

temp=new clsString (-12.34567890123);

cout<<*temp<<endl;

temp->~clsString ();

(1) (4) . (1), , "error C2668: clsString:: clsString: ambiguous call to overloaded function". , , . , (3) (6) . (2) (3) (37) (38).

 

.

clsString, .

4 - 29 -, 2 , 29 , 27 . 4 , 1 , 1 , / , .

TPStrThread TPStrCompare, TPString.

, , .

, .

Windows.

 

  1. MSDN
  2. Pohl, Ira C++ by Dissection. Addison-Winsley: New York, 2002.520p
  3. Stroustrup, Bjarne The C++ Programing Language. Addison-Winsley: New York, 1997.912p
  4. .. . . ++. .: , 2005.1244
  5. .. ++ . .: , 2002.1194

 

 

"TPstr. h", .

#ifndef TPSTR_H

#define TPSTR_H

#include

using std:: ostream;

using std:: istream;

class TPString

{

public:

// TPString ();

TPString (const char * = "");

TPString (TPString&);

~TPString ();

char&operator [] (int);

const char &