求高人指点:请问C++builder 中,字符串的输入输出有什么要求?下面是我的代码
#include<vcl.h>#pragmahdrstop#include<conio.h>//#include<iostream>#include<iostream.h...
#include <vcl.h>
#pragma hdrstop
#include <conio.h>
//#include <iostream>
#include <iostream.h>
//---------------------------------------------------------------------------
#pragma argsused
int main(int argc, char* argv[])
{
AnsiString str="(1^2+2)*6*5";
cout<<str<<endl;
getch();
return 0;
}
运行之后提示下列错误:
[C++ Error] Unit1.cpp(17): E2094 'operator<<' not implemented in type 'ostream' for arguments of type 'AnsiString' 展开
#pragma hdrstop
#include <conio.h>
//#include <iostream>
#include <iostream.h>
//---------------------------------------------------------------------------
#pragma argsused
int main(int argc, char* argv[])
{
AnsiString str="(1^2+2)*6*5";
cout<<str<<endl;
getch();
return 0;
}
运行之后提示下列错误:
[C++ Error] Unit1.cpp(17): E2094 'operator<<' not implemented in type 'ostream' for arguments of type 'AnsiString' 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询