cout或比较(strcmp)const char * const变量的方法有哪些?我总是在Codeblocks中得到错误:在此范围内未声明cout(或strcmp)?特此代码:
#include <stdio.h>
#include <string.h>
int main (const int argc, const char *const argv[])
{
const char *f = "sjgn";
cout<<f;
if (strcpm(f,"sjgn")==0)
std::cout<<f;
return 0;
}
谢谢!