Qlock is a clock program that outputs its own source code and highlights characters in certain positions to display local time.
NOTE: A quine is a computer program that takes no input and produces a copy of its own source code as its only output.
The repository contains two Visual Studio projects, and each project has two C# files, one is the quine clock program and the other is the readable version of the same code.
- Download the whole repository.
- Double-click the solution file (.sln) to open projects in Visual Studio.
- Configure the startup project first or press Run right away.
The reason why there are two projects in the first place is that the newest C# versions have an optional feature called Implicit Using Directives, and it allows shortening some code, thus the two versions of the same quine:
Project | Target Framework | Implicit Usings |
---|---|---|
quine-clock.csproj |
.NET 6 | Disabled |
quine-clock-implicit-usings.csproj |
.NET 8 | Enabled |
Other implementations:
Copyright © 2024 Anar Bastanov
Distributed under the MIT License.