我之前从未见过这个,但今天我尝试使用ghc并得到:
could not find module
there are files missing in the base-4.10.0.0 package
Run Code Online (Sandbox Code Playgroud)
ghc-pkg检查返回:
在运行所有黄瓜测试后,有没有办法运行方法?
@After 注释会在每个单独的测试之后运行,对吗?我不想只运行一次的东西,而是在最后。
我正在使用 AT&T 语法,但我想尝试一下英特尔。我有这个代码:
.text
.global _start
_start:
mov ebx, 0
mov eax, 1
int 80h
Run Code Online (Sandbox Code Playgroud)
哪个应该返回0,对吗?在我转换它之前,它是用 AT&T 做的。
我正在组装使用:
as out.s -msyntax=intel --32 -o out.o
Run Code Online (Sandbox Code Playgroud)
但我得到:
out.s:5: Error: ambiguous operand size for `mov'
out.s:6: Error: ambiguous operand size for `mov'
out.s:7: Error: junk `h' after expression
Run Code Online (Sandbox Code Playgroud)
我哪里出错了?
class class1 {
public:
class1(int x);
};
class class2 : public class1 {
};
Run Code Online (Sandbox Code Playgroud)
我可不可以做:
class2 my_class2(10);
Run Code Online (Sandbox Code Playgroud)
或者我是否必须再次定义构造函数class2(即使它完全相同)?