首先,为这个愚蠢的问题道歉。但是我真的需要了解计算机科学书籍中用来显示程序执行流程的语言。
示例:
1 A = 4
2 t1 = A * B
3 L1: t2 = t1 / C
4 if t2 < W goto L2
5 M = t1 * k
6 t3 = M + I
7 L2: H = I
8 M = t3 - H
9 if t3 ≥ 0 goto L3
10 goto L1
11 L3: halt
这种语言有特定的标准吗?这是伪代码还是中间形式的代码?
我做了一个自动提醒从Excel发送电子邮件,由一个VBS文件(放在StartUp文件夹中)触发。当我打开我的电脑,提醒被触发,它应该发送电子邮件,但我有一个安全错误。
这是Excel宏:
Sub Email()
Dim aOutlook As Object
Dim aEmail As Object
Dim i As Integer
For i = 1 To 100
If Cells(i, 3).Value = Date And IsEmpty(Cells(i, 7)) Then
Set aOutlook = CreateObject("Outlook.A
为什么我所有的容器都不启动?每次我收到以下错误时:
PS C:\temp> docker run hello-world:nanoserver
C:\Program Files\Docker\docker.exe: Error response from daemon: container cec0e5f7f4036b1131a0bac64fd4584b1a5a4e281c328e
1469b552d2a71a573d encountered an error during CreateContainer: failure in a Windows system call: The sy
我想用伪代码编写一个程序,它将识别C/C++源文件中"#“或"%”的错误用法。这听起来很简单,但我不确定如何用“伪代码”编写/描述该符号出现的位置,例如,是否在变量名称之前/之后。
我是否应该使用这样的方法:
If "#" after var_a
then "Error!"
elseif before ";"
.... and so on
或者我应该用#_ASCII_code is_after之类的“符号”.
我真的想不出如何用伪代码来描述这些特殊情况。
我必须指出,我在互联网上读到了伪
所以我试着在vscode上写一个c程序,这是我收到的输出。
[Running] cd "c:\Users\Lily\Documents\vscode prg\" && gcc rect.c -o rect && "c:\Users\Lily\Documents\vscode prg\"rect
rect.c: In function 'main':
rect.c:21:12: warning: 'return' with a value, in function returning void
读完这篇文章后,你可能会说我疯了,但当你读到我在这里说的话时,我真的希望你相信我。为了理解可能导致内存泄漏或其他错误的情况,我编写了以下代码并尝试在我的pc上编译。
#include <iostream>
using namespace std;
class game
{
int x;
public :
char *s;
char read();
char manipulation();
};
char game :: read()
{
char string[100];
cout<<"Enter name &
考虑一下Levenshtein距离的伪码示例:
function Leven_dyn(S1[1..m], S2[1..n], m, n);
var D[0..m, 0..n];
begin
for i := 0 to m do
D[i, 0] := i;
end for
for j := 0 to n do
D[0, j] := j;
end for
for i := 0 to m do
for j := 0 to n do
a := D[i - 1, j] + 1; // here accessing negative index
我正在尝试创建一个react应用程序,但是它会产生以下错误:
Creating a new React app in C:\Users\Admin\Desktop\study\portfoliosite\mysite\my-app.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template-typescript...
Aborting installation.
Unexpected error. Pl
有没有工具可以将PHP源代码自动转换为伪代码?
我实现了一些算法,我想要有它的标准独立语言伪代码。如果有工具,请帮我找到。
编辑:
例如,PHP源代码为:
$A=array('b');
array_unshift($A,'a');
print_r($A);
它的伪代码如下:
Define array A with first element 'b'
Prepend string 'a' to the beginning of array A
Print all elements of array A to output