![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
poj 调试经验
BYR_jiandong
这个作者很懒,什么都没留下…
展开
-
Runtime error 可能是scanf函数出现问题 poj3630
#include#include#includeusing namespace std;const int MAX=10010;int main(){ string str[MAX]; int test; scanf("%d",&test); while(test--){ int n; scanf("%d",&n); for(int i=0;i<n;i++)原创 2014-11-24 18:50:06 · 1258 阅读 · 0 评论 -
error C2664: “countChar”: 不能将参数 1 从“char [20]”转换为“std::string &”
size_t countChar( string& str,char ch){ cout<<str; return 1;}int main(void){ char buffer[20]; char c; cin>>c>>buffer; cout<<countChar(buffer,c);}编译后就会出现该错误:原因:类型转换失败,参数类型转换,不能讲s原创 2014-12-08 10:12:25 · 1766 阅读 · 0 评论