如何写一个伪code [英] How to write a pseudo Code

查看:104
本文介绍了如何写一个伪code的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用VB.net,C#和SQL Server

Using VB.net, C# and SQL Server

我想写一个伪我的应用程序。

I want to write a pseudo for my application.

伪code是像编码或流程图...?

pseudo code is like coding or flow chart...?

任何一个可以提供样本伪code任何类型的应用程序。

Can any one provide a sample pseudo code for any type of application.

推荐答案

伪code是只是一种前preSS方案的意图没有被语法正确。

Pseudo code is just a way to express the intent of the program without being syntactically correct.

一个例子可以是:

print "What is your name"
read input from user
print "Hello " + user input

用于从ATM取钱又如:

Another example for withdrawing money from an ATM:

if the selected account's balance is greater than the requested amount
    reduce balance by requested amount
else
    display error message
end if

这篇关于如何写一个伪code的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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