Happy Hello World Day to the C/C++ forum! Today is the day to write cryptic "Hello World" programs and say hello to at least ten people:
Hello to the C/C++ people:
weaknessforcats (4660 posts)
Banfa (3405 posts)
sicarie (2837 posts)
JosAH (2186 posts)
Ganon11 (1819 posts)
gpraghuram (1095 posts)
horace1 (1059 posts)
Savage (1018 posts)
AdrianH (977 posts)
RedSon (685 posts)
BISKOT188 (1 post)
Gregor McAlen (9 posts)
sandeepkavade (18 posts)
mohanht (1 post)
(Follow the link and it will make sense.)
Code:
#include <iostream>
using namespace std;
int main() {
char oldHello[] = "Happy Whirl!";
char newHello[] = "Jello(~orld)";
int badChars[] = {1, 2, 3, 4, 7, 8, 9, 10};
cout << oldHello;
int j = 7;
for (int i = 11; i >= 0; i--) {
cout << '\b';
if (badChars[j] == i) {
cout << newHello[i] << '\b';
j--;
}
}
cout << endl;
cin.get();
return 0;
}
weaknessforcats (4660 posts)
Banfa (3405 posts)
sicarie (2837 posts)
JosAH (2186 posts)
Ganon11 (1819 posts)
gpraghuram (1095 posts)
horace1 (1059 posts)
Savage (1018 posts)
AdrianH (977 posts)
RedSon (685 posts)
BISKOT188 (1 post)
Gregor McAlen (9 posts)
sandeepkavade (18 posts)
mohanht (1 post)
(Follow the link and it will make sense.)
Comment