急!!(100分)

  • 主题发起人 dengminli
  • 开始时间
D

dengminli

Unregistered / Unconfirmed
GUEST, unregistred user!
为string类定义一个类转换函数:
string::eek:perator const char *( );
以保证下面的程序能正确运行:
if (strcmp(ob1,ob2)= =0)
cout<<ob1<<” is equal to “<<ob2<<endl;
else
cout<<ob1<<” is not equal to “<<ob2<<endl;
其中ob1和ob2是string类的对象。
 
不是Delphi;不要用中文引号。
 

Similar threads

S
回复
0
查看
1K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
933
SUNSTONE的Delphi笔记
S
I
回复
0
查看
539
import
I
S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
顶部