Page 3#

Multi-page source#

We define some part of the code here:

int x = 10;
int y = 32;
{{Add x and y into z}}
std::cout << "z = " << z << std::endl;
#include <iostream>
int main(int, char**) {
    {{Main body}}
    return 0;
}

Tangled result#

Including content from the previous page.

Tangled block 'file: src/main2.cpp' [from here]

#include <iostream>
int main(int, char**) {
    int x = 10;
    int y = 32;
    int z = x + y;
    std::cout << "z = " << z << std::endl;
    return 0;
}