我正在尝试制作一个小型网站,但是当我尝试我的 HTML 文件时,标题根本不显示。
代码:
<html>
<head>
<title>My Games: <br></title>
</head>
<body>
<a href="http://erikwallstrom.16mb.com/AdventureGame.swf.swf">My Epic Game</a>
<a href="http://erikwallstrom.16mb.com/Main.swf"><br> My Other Epic Game</a>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
有人知道为什么标题不显示吗?如果是,请告诉我原因!:)
我看到很多人写
[BITS 16]
[ORG 0x7C00]
Run Code Online (Sandbox Code Playgroud)
当其他人写
BITS 16
ORG 0x7C00
Run Code Online (Sandbox Code Playgroud)
这对 NASM 有什么影响吗?
我想知道为什么我应该这样做:
int myArray[5];
for(int i = 0; i < 5; i++)
{
scanf("%d", &myArray[i]);
}
Run Code Online (Sandbox Code Playgroud)
而不是这个:
for(int i = 0; i < 5; i++)
{
scanf("%d", myArray[i]);
}
Run Code Online (Sandbox Code Playgroud) Alignas在C11没有像我期待的那样工作.这是我的代码:
#include <inttypes.h>
#include <stdalign.h>
#include <stdio.h>
struct A
{
alignas(int32_t) int16_t a;
int16_t b;
};
struct B
{
int16_t a;
alignas(int32_t) int16_t b;
};
struct C
{
int16_t a;
int32_t b;
};
struct D
{
int32_t a;
int16_t b;
};
int main(void)
{
printf("%zu, %zu\n", alignof(int16_t), sizeof(int16_t));
printf("%zu, %zu\n", alignof(int32_t), sizeof(int32_t));
printf("%zu, %zu\n", alignof(struct A), sizeof(struct A));
printf("%zu, %zu\n", alignof(struct B), sizeof(struct B));
printf("%zu, %zu\n", alignof(struct C), sizeof(struct C));
printf("%zu, %zu\n", alignof(struct D), sizeof(struct D));
}
Run Code Online (Sandbox Code Playgroud)
输出:
2, …Run Code Online (Sandbox Code Playgroud)