难以创建和使用类。 [英] Having difficulty creating and using classes.

查看:64
本文介绍了难以创建和使用类。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

实际上我的代码有很多问题。我实际上我做了这个代码让我为几个学生创建一个文件,我尝试了我的名字,但不幸的是我有很多错误,我不知道如何调试它们。如果你们中的任何人知道如何通过让用户输入这么多的学生和他们的标记来完成程序并让用户进行一些修改或编辑他或她的名字,我希望至少有100名学生输入他们的姓名,ID,标记,并显示文件中每个学生的名称,id,avarage标记,这是代码,

i希望我能得到一个完整的程序。请帮助我,谢谢你,非常重要,我非常感谢你们所有人,祝你们玩得愉快



actually i have a lot of problems with code down. i actually i made this code to let create a file for several student, i tried by my name but unfortunately i got alot of errors i don''t know how can i debug them. if anyone of you know how to complete the program by making the user to enter so many student and their marks and let the user to make some modification or edit his or her names, i want at least 100 student to enter their names, ids,marks, and display the name, the id,the avarage marks for each student in files,this is the code,
i wish i can get a complete program. please help me and thank you, it is really important, i am really thankful for all of you,have a great time guys




展开 | 选择 | Wrap | 行号

推荐答案

您遇到的错误是什么?你也可以在这里复制和粘贴它们吗?
What are the errors you are getting? Can you copy and paste them here as well?


如果你不介意,你可以复制并粘贴代码并编译它,实际上我不知道如何创建每个学生的文件,我认为错误是,双重标记是私人的我真的不知道它是什么意思,我试图改变其他类型,但仍然是相同的错误,在设计程序时仍然如此薄弱,因为我没有深入学习课程
if u don''t mind, u can copy and paste the code and compile it, actually i didn''t know how to create a file for each students, i think the errors is ,"Double Marks is private" i really don''t know what does it mean, i tried to change to other types but still the same errors, still so weak in designing a programs because i have not learn classes in deep



如果你不介意,你可以复制并粘贴代码并编译它,实际上我不知道如何为每个学生创建一个文件,我想错误是,双重标记是私人的我真的不知道它是什么意思,我试图改变其他类型,但仍然是相同的错误,在设计程序时仍然如此薄弱,因为我没有深入学习课程
if u don''t mind, u can copy and paste the code and compile it, actually i didn''t know how to create a file for each students, i think the errors is ,"Double Marks is private" i really don''t know what does it mean, i tried to change to other types but still the same errors, still so weak in designing a programs because i have not learn classes in deep



我可以,但我希望你看一下错误 - 我的目标不仅仅是修复你的程序,还能帮助你将来诊断出类似的问题,希望能让你更好和更独立的程序员(然后你可以回来,甚至可能帮助我!)。

I can, but I would like you to look at the errors - my goal here is not just to fix your program, but help you be able to diagnose a similar issue in the future, hopefully make you a better and more independent programmer (and then you can come back and maybe even help me!).


这篇关于难以创建和使用类。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆