提交 155ebd0c 编写于 作者: F feilong

初始化目录

上级 17858f6e
{
"type": "code_options",
"author": "kinfey",
"source": "HelloWorld.md"
}
\ No newline at end of file
# Hello World
以下 `Hello World` 程序中,能够正确输出内容的是:
## 控制台
### 运行
```bash
dotnet new console --output sample1
dotnet run --project sample1
```
## 答案
```csharp
Console.WriteLine("Hello, World!");
```
## 选项
### A
```csharp
System.out.printf("Hello World");
```
### B
```csharp
println("Hello World");
```
### C
```csharp
Console.WriteLine("Hello, World!");
```
{
"node_id": "",
"keywords": [
"控制台",
"dotnet new",
"程序入口"
],
"children": [],
"export": [
"HelloWorld.json"
],
"title": "Hello World"
}
\ No newline at end of file
// See https://aka.ms/new-console-template for more information
Console.WriteLine("Hello, World!");
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>
{
"type": "code_options",
"author": "kinfey",
"source": "Intro.md"
}
\ No newline at end of file
# .NET 简介
以下关于 `.NET描述正确的是` 的说法正确的是:
## 答案
```
所有选项均正确
```
## 选项
### A
```
.NET 是一种用于构建多种应用的免费开源开发平台
```
### B
```
.NET 是开放源代码,使用 MIT 和 Apache 2 许可证。 .NET 是 .NET Foundation 的项目。
```
### C
```
Microsoft 支持在 Windows、macOS 和 Linux 上使用 .NET。 它会定期更新以保证安全和质量(每月的第二个星期二)
```
\ No newline at end of file
{
"node_id": "",
"keywords": [
"dotnet",
".NET",
"跨平台"
],
"export": [
"Intro.json"
]
}
\ No newline at end of file
{
"node_id": "csharp-37f9119660e445a48b065052b38c7687",
"keywords": [
"c#的起源",
"起源",
"c#"
],
"children": [],
"export": [
"helloworld.json"
]
}
\ No newline at end of file
{
"type": "code_options",
"author": "幻灰龙",
"source": "helloworld.md",
"notebook_enable": true
}
\ No newline at end of file
# Hello World
编写一个输出 "Hello,World!" 的 C# 程序,以下错误的是?
## 答案
```csharp
using System;
public class Program{
public static void Main(){
String str1 = "Hello,";
String str2 = "World!";
Console.WriteLine("str1"+"str2");
}
}
```
## 选项
### 直接打印
```csharp
using System;
public class Program{
public static void Main(){
Console.WriteLine("Hello,World!");
}
}
```
### 两个字符串拼接
```csharp
using System;
public class Program{
public static void Main(){
String str1 = "Hello,";
String str2 = "World!";
Console.WriteLine(str1+str2);
}
}
```
### 使用 var 关键字
```csharp
using System;
public class Program{
public static void Main(){
var str1 = "Hello,";
var str2 = "World!";
Console.WriteLine(str1+str2);
}
}
```
\ No newline at end of file
{
"node_id": "csharp-ab27adf6911e4530bd1716526c12781c",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "csharp-08a7251782494105ba037cc4f59ddf0c",
"keywords": []
}
\ No newline at end of file
{
"node_id": "csharp-78ef60a83e3a45dca08ded3b6e9e806a",
"keywords": []
}
\ No newline at end of file
{
"node_id": "csharp-0d59ee87a1c24dec86cd6174eda22d8e",
"keywords": []
}
\ No newline at end of file
{
"node_id": "csharp-e5ec4e73aa7842fda7fc5e2a3523373e",
"keywords": []
}
\ No newline at end of file
{
"node_id": "csharp-7767ed91286e423fafc5c4637935199c",
"keywords": []
}
\ No newline at end of file
{
"tree_name": "csharp",
"keywords": [],
"node_id": "csharp-0991d7a5f9a242e4983005d8ff53b086"
}
\ No newline at end of file
{
"csharp": {
"node_id": "csharp-0991d7a5f9a242e4983005d8ff53b086",
"keywords": [],
"children": [
{
"csharp初阶": {
"node_id": "csharp-0d59ee87a1c24dec86cd6174eda22d8e",
"keywords": [],
"children": [
{
"预备知识": {
"node_id": "csharp-08a7251782494105ba037cc4f59ddf0c",
"keywords": [],
"children": [
{
"简介": {
"node_id": "csharp-37f9119660e445a48b065052b38c7687",
"keywords": [],
"children": []
}
},
{
"安装": {
"node_id": "csharp-ab27adf6911e4530bd1716526c12781c",
"keywords": [],
"children": []
}
}
]
}
},
{
"基础语法": {
"node_id": "csharp-78ef60a83e3a45dca08ded3b6e9e806a",
"keywords": [],
"children": []
}
}
]
}
},
{
"csharp中阶": {
"node_id": "csharp-e5ec4e73aa7842fda7fc5e2a3523373e",
"keywords": [],
"children": []
}
},
{
"csharp高阶": {
"node_id": "csharp-7767ed91286e423fafc5c4637935199c",
"keywords": [],
"children": []
}
}
]
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册