Thread: Bottles of beer on the wall?
hi idk why closed share did first challenge:
warning windows:
for linux this:code:#include <cstdio> #include <cstdlib> #include <windows.h> #include <iostream> #include <string> using namespace std; int main() { int a; string c, d, e, f, f, s; c = " bottles of beer on wall, "; d = " bottles of beer"; e = "take 1 down , pass around, "; f = " no more bottles of beer on wall"; f = "no more bottles of beer on wall"; s = "go store , buy more, "; (a = 99; > 1; --) { cout << << c << << d << endl << e << - 1 << c << endl << endl; } cout << << c << << d << endl << e << f << endl << endl << f << " no more " << d << endl; = 99; cout << s << << c; cin.get(); return 0; }
code:#include <cstdio> #include <cstdlib> #include <iostream> #include <string> using namespace std; int main() { int a; string c, d, e, f, f, s; c = " bottles of beer on wall, "; d = " bottles of beer"; e = "take 1 down , pass around, "; f = " no more bottles of beer on wall"; f = "no more bottles of beer on wall"; s = "go store , buy more, "; (a = 99; > 1; --) { cout << << c << << d << endl << e << - 1 << c << endl << endl; sleep(8000); } cout << << c << << d << endl << e << f << endl << endl << f << " no more " << d << endl; = 99; cout << s << << c; cin.get(); return 0; }
think sleep(); function, sleep(); on windows, added sing along lol bad closed thread.
...i thinking of bottle framework![]()
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk [SOLVED] Bottles of beer on the wall?
Ubuntu
Comments
Post a Comment