我有一个疑问,请说清楚 [英] i have a doubt pls make it clear
本文介绍了我有一个疑问,请说清楚的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
1)
string name=new string();
console.write(name);
2)
2)
name = 2.tostring();
from the above codes which code causes a compilation error?
推荐答案
第1行:字符串不包含带有0个参数的构造函数.
你现在开心吗?
Line 1: string does not contain a constructor that takes 0 arguments.
Are you feeling happy now?
这篇关于我有一个疑问,请说清楚的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文