导航:首页 > 源码编译 > 此函数不能编译为托管函数

此函数不能编译为托管函数

发布时间:2022-08-25 19:49:45

1. VC参数为托管数组的函数用法.

定义一个 void OutputInformation(array <student^>^ Students);

函数主体:
void student::OutputInformation(array <student^>^ Students)
{
for(int i=0; i<5;i++)
{
OutputName(Students[i]);
OutputAge(Students[i]);
OutputEnglishScore(Students[i]) ;
OutputProgrammingScore(Students[i]) ;
}
}

void student::OutputName(student^ abc)
{
Console::Write("student Name: "+ Name);
Console::WriteLine();
}

void student::OutputAge (student^ abc)
{
Console::Write("Age: " + Age);
Console::WriteLine();
}

void student::OutputEnglishScore(student^ abc)
{
Console::Write("English Score: " + EnglishScore );
Console::WriteLine();
}

void student::OutputProgrammingScore (student^ abc)
{
Console::Write("Programming Score: " + student::ProgrammingScore );
Console::WriteLine();
}
引用函数
array <student^>^ Students = gcnew array<student^> (5) {Jack , Mike, John, Mok, Sophia};
OutputInformation (Students[5]);
网络上自己查

阅读全文

与此函数不能编译为托管函数相关的资料

热点内容
反编译后为什么不能回编 浏览:46
java反射获得属性值 浏览:29
程序员和甲方的矛盾 浏览:126
在地狱做程序员 浏览:763
银行app能做什么 浏览:228
追书缓存的小说在哪个文件夹 浏览:552
山科女生程序员 浏览:746
mybatis3源码分析 浏览:457
华为交换机常用配置命令 浏览:376
程序员怎么去银行上班 浏览:589
广州程序员薪资 浏览:890
win7命令提示符输入 浏览:594
关于程序员的故事 浏览:484
吃鸡服务器是什么样的 浏览:24
为什么pspice没有单片机 浏览:10
高数第六版下册答案pdf 浏览:906
sm3算法实现java 浏览:677
只有程序员才懂的笑话 浏览:267
php开发app接口源码 浏览:14
加密狗宝宝 浏览:239