Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

CSC112 Spring 2016 Examples

2370 views
1
#include <unistd.h>
2
#include <stropts.h>
3
#include <iomanip>
4
#include "keystream.h"
5
6
using namespace std;
7
8
9
int main()
10
{
11
keycode x;
12
int n;
13
int res;
14
15
kin.cbreakMode();
16
17
18
while(kin)
19
{
20
x = kin.getKey();
21
cout << "0x" << hex << x << endl;
22
}
23
24
25
return 0;
26
}
27
28