用于 ping 应用程序以检查网络节点的伪代码

Pseudocode for ping application to check the nodes a network

我是计算机编程的新手。我目前正在准备家庭作业。我遇到了这个问题。 为 ping 应用编写一个伪代码,然后可以用 C# 程序编写伪代码来检查网络中的节点。

我想知道什么是伪代码?阅读它是关于如何编写代码的描述。我有点熟悉 python 代码,但对 C# 了解不多。 你们能帮忙吗?

Pseudocode is an informal high-level description of the operating principle of a computer program or other algorithm. It uses the structural conventions of a normal programming language but is intended for human reading rather than machine reading (Wiki)

一些基本的例子

eg1.Write 的伪代码, 如果学生分数为 50+,则学生通过,否则学生未通过

回答

 if studentMark is more than equal to 50  
display pass
  else 
display failed

如您所见,没有 "actual code" 但对代码应该做什么有基本的了解。

额外Pseudocode Examples