This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef NUM_THROWS | |
#define NUM_THROWS 100 | |
#endif | |
#include <iostream> | |
#include <iomanip> | |
#include <cstdint> | |
template <unsigned K> | |
struct bigint |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 SCREEN 9:VIEW | |
90 DEFINT A-Z | |
95 X0=200:Y0=30 | |
100 LINE (X0,Y0)-(X0+299,Y0+299),3,BF | |
120 LINE (X0+150,Y0)-(X0+299,Y0+299),1,BF | |
150 DIM A%(200):DIM B%(200) | |
155 LINE (543,23)-(557,37),3,BF:LINE(563,23)-(577,37),1,BF | |
160 CIRCLE (550,30),7,1,0,2*3.14,1:CIRCLE (570,30),7,3,0,2*3.14,1 | |
170 PAINT (550,30),1:PAINT(570,30),3 | |
180 GET (543,23)-(557,37),A%:GET (563,23)-(577,37),B% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Adapted from https://github.com/v7unix/v7unix/blob/master/v7/usr/src/cmd/ed.c with slight fixes. */ | |
/* | |
* Editor | |
*/ | |
#include <signal.h> | |
#include <sgtty.h> | |
#include <setjmp.h> | |
#include <stdlib.h> | |
#include <string.h> |