//compiles on gcc-4.6.1 //g++ -W -Wall -Wextra -O2 -pedantic -std=c++0x -o quiz ./quiz.cpp #include <iostream> ...
//compiles on gcc-4.6.1 //g++ -W -Wall -Wextra -O2 -pedantic -std=c++0x -o quiz ./quiz.cpp #include <iostream> ...
#include <iostream> #include <vector> using namespace std; ...
C++ Simple Quiz
by thaostra.myopenid.com,
October 04, 2011 16:53,
5 refactorings
This is a working game, but...
parameter, file, text = ARGV if parameter == '-w' #=> write mode ...
Ruby Clumsy file I/O program
by thaostra.myopenid.com,
June 21, 2010 00:06,
1 refactoring, tagged with exceptions, arguments, parameters, I/O
This is my first attempt of...
#!/usr/bin/env ruby
puts (1..10).map{ |i|"#{i} squared = #{i**2}" }, 'Program Completed.'
...
Ruby On Using blocks to avoid spagh...
by thaostra.myopenid.com,
June 19, 2010 04:37
I never thought about using...
#!/usr/bin/env ruby
1.upto(10){ |i|puts "#{i} squared = #{i**2}" }
...
Ruby Using blocks to avoid spagh...
I looked at the code exampl...

OOPS! Accidentally created...