得分表,保存到文件 [英] score table, save to file

查看:88
本文介绍了得分表,保存到文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我来自波兰,所以请不要使用复杂的语言.

Hello 

I am from Poland so please don't use sophisticated language.

我想制作一个分数表,我的想法是将分数保存到txt文件中并阅读,但是我在创建文件时遇到问题.

I want to make a score table, my idea is to save a score into txt file and read this, but i have problem with creation of file.

Piotr Robak

Piotr Robak

推荐答案

如何使用czas构造函数调用Form2,因为您仍然拥有默认构造函数Form2()在您的类中,默认情况下不会调用自定义构造函数,您必须在调用它时传递其参数,例如:

How you calling the Form2 with the czas constructor, becuase if you still have the default contructor Form2() in your class that custom constructor will not be called by default, you have to pass its param when calling it, example:

Form2 f2 = new Form2(2);

还要确保您根据运行构建时使用的模式,在调试或发行文件夹中的exe文件所在的目录中寻找Sudoku.txt文件.

Also make sure you are looking for the Sudoku.txt file in the directory where your exe file exist either in debug or release folders based on the mode used when running the build.


这篇关于得分表,保存到文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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