
已解决问题
谷歌gonlu007007用户在2013.06.03提交了关于“四川大学结构体数组对应 j**a”的提问,欢迎大家涌跃发表自己的观点。目前共有1个回答,最后更新于2024-12-19T08:48:07。structtr{
charw;
charopr1;
charopr2;
inttemp;
}trip[100];
这个结构体在j**a应该怎么写
还有赋值trip[0].w=ch;ch是传过来的char
我对应在j**a里写的是
classtr{
charw;
charopr1;
charopr2;
inttemp;
}
tr[]trip=newtr[4];
trip[0].w='c';
System.out.println(trip[0].w);
结果MyEclipse没反应没有输出。希望大家能够帮助她。
详细问题描述及疑问:structtr
{
charw;
charopr1;
charopr2;
inttemp;
}trip[100];
这个结构体在j**a应该怎么写
还有赋值trip[0].w=ch;ch是传过来的char
我对应在j**a里写的是
classtr{
charw;
charopr1;
charopr2;
inttemp;
}
tr[]trip=newtr[4];
trip[0].w='c';
System.out.println(trip[0].w);
结果MyEclipse没反应没有输出。期待您的答案,你就是当代的活雷锋,太感谢了
!