当我使用 C++ .NET 框架编写应用程序时,我想问一个问题。
当我为“for循环”编写代码时,我总是使用这种编码风格:
for( int i=0; i<somevalue; ++i ) {
// Some code goes here.
}
但是当我使用 C++ .NET 时,我可以编写
for( System::Int32 i=0; i<somevalue; ++i ) {
// Some code goes here.
}
我认为没有区别对吗?如果没有,你能解释一下这两种方式有什么区别吗?女巫一更有效?