Git Product home page Git Product logo

basiccsharp's Introduction

CSharp 作业


清华大学电子系科协软件部 2022 暑期培训作业


题目及要求

我们希望编写一个程序,用于统计某个变量被修改与被读取的次数。请在BasicCSharp/hw1/hw1/Counting.cs中完成对变量Variable被修改与被读取的次数统计。只允许修改Counting类中的代码,且满足以下要求

  • Variable 不能被外部程序赋值为负数。若被赋为负数,则将它代表的值置为0。
  • ReadTimesVariable 被外部程序读取的次数。
  • WriteTimesVariable 被外部程序修改的次数。

使用工具

VS 2022

作业的 C# 程序运行在.NET 6平台上,建议使用Visual Studio 2022进行编写。

使用 Visual Studio 2022直接打开BasicCSharp/hw1/hw1.sln进行编写。

VScode

也可以使用 VScode,使用 VScode 请保证你的计算机上有.NET 6 环境。

使用 VScode 直接修改BasicCSharp/hw1/hw1/Counting.cs即可。若要检验结果是否正确,可以使用命令启动Counting.cs程序

dotnet run --project BasicCSharp/hw1/hw1

或直接用我们写好的测试程序进行测试

dotnet test BasicCSharp/hw1/hw1.sln

提交方式

提供两种提交方式:

  1. GitHub 提交
    • fork 仓库: TCL606/BasicCSharp (github.com)到个人仓库,按要求修改好后,从个人仓库提pr到原本的仓库,pr信息填写为:CSharp_姓名_班级 (如:CSharp_小明_无19)。
  2. 邮箱提交
    • 只允许修改BasicCSharp/hw1/hw1/Counting.cs代码,修改好后,将BasicCSharp整个文件夹打包成常见压缩格式(如.rar.zip等),并命名为:CSharp_姓名_班级 (如:CSharp_小明_无19)发送到邮箱 [email protected]

截止日期

2022.7.20

basiccsharp's People

Contributors

tcl606 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.