Fall, 2024

Instructor: 金城

School of Computer Science, Fudan University


News

Schedule

Num Date Subject Assignment
01 09/06/2024 数的表示 I
02 09/12/2024 环境配置
03 09/13/2024 数的表示 II
04 09/19/2024 GitLab Lab0-GitLab (Due: 09/25/2024)
05 09/20/2024 机器码 I
06 09/26/2024 DataLab发布 Lab1-DataLab (Due: 10/10/2024)
07 09/27/2024 机器码 II
08 10/10/2024 BombLab发布 Lab2BombLab (Due: 10/30/2024)
09 10/11/2023 机器码 III
10 10/17/2023 DataLab面试
11 10/18/2023 机器码 IV
12 10/24/2023 BombLab答疑
13 10/25/2023 处理器 I
14 10/31/2023 StackLab发布 Lab3-StackLab (Due: 11/21/2024)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <iostream>
#include <coroutine>

struct task
{
struct promise_type
{
task get_return_object() { return {}; }
std::suspend_never initial_suspend() { return {}; }
std::suspend_never final_suspend() noexcept { return {}; }
void return_void() {}
void unhandled_exception() {}
};
};

task hello()
{
std::cout << "Hello, ICS 2024!" << std::endl;
co_return;
}

int main()
{
hello();
}