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

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

发布时间: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]);
网络上自己查

阅读全文

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

热点内容
在伴伴app里面怎么拜师傅 浏览:942
编程珠玑笔记 浏览:280
结束命令行 浏览:268
力学原理pdf 浏览:736
宏定义编译后不变 浏览:404
如何搞免费服务器 浏览:212
神经系统pdf 浏览:672
如何查看服务器上的数据库服务器 浏览:195
压缩机型号v代表什么 浏览:58
旅游类源码 浏览:867
电脑服务器类型怎么设置 浏览:235
pdf炒股 浏览:791
服务器地址缺少端口号什么意思 浏览:535
下载需要解压的小说用哪个软件 浏览:539
广东分布式服务器云主机 浏览:588
服务器忙打不开怎么办 浏览:20
tif压缩软件 浏览:418
程序员那么可爱陆漓上班第1天 浏览:952
macbookair自带什么app 浏览:707
如何关了加密的软件 浏览:587