Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- int Modulus(int iN, int iMod) {
- int iQ = (iN/iMod);
- return iN - (iQ*iMod);
- }
- char GetChar(int iGenerator, char cBase, int iRange) {
- return (cBase + Modulus(iGenerator, iRange));
- }
- int main() {
- int j = 7;
- while(true) {
- int i = 0;
- //output random row of characters
- while(i < 80) {
- std::cout << GetChar(j + i*i, 33, 30);
- ++i;
- }
- j = (j + 31);
- //Delay
- i = 0;
- while(i < 30000)
- {
- GetChar(1, 1, 1);
- ++i;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement