Jul 26, 2009 at 12:13pm Jul 26, 2009 at 12:13pm UTC
Heres how it works, every poster adds
one line of code OR deletes
one line of code. It has to make sense, but it does not have to compile until the thread is done (whenever we get bored). Using Dev-c++ for this. I'll start us off with a bit. You can also add onto an existing line. Please state what you are changing when you post :)
1 2 3 4 5 6 7 8 9 10 11 12
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int i;
system("PAUSE" );
return EXIT_SUCCESS;
}
Remember, add/edit to or remove only
one line, the idea is to see if we can work together on this :)
Last edited on Jul 26, 2009 at 12:35pm Jul 26, 2009 at 12:35pm UTC
Jul 26, 2009 at 8:11pm Jul 26, 2009 at 8:11pm UTC
I'm curious about your loop, so i'll leave it. I like games though so:
edit: R0mai you twerp! you changed two at once, didn't catch that... oh well, to late now lol
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include <cstdlib>
#include <iostream>
#include <ctime>
#include <cmath>
using namespace std;
class Player {
int main(int argc, char *argv[])
{
srand( time(0) );
int i;
int rNum = rand() % 10 + 1;
// Do-while loop to
do {
return EXIT_SUCCESS;
}
Last edited on Jul 26, 2009 at 8:16pm Jul 26, 2009 at 8:16pm UTC
Jul 26, 2009 at 8:37pm Jul 26, 2009 at 8:37pm UTC
It seems this is growing fast
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#include <cstdlib>
#include <iostream>
#include <ctime>
#include <cmath>
using namespace std;
class Player {
public :
explicit Player ( unsigned initial_health = 100 ) : health_ ( initial_health ) { }
private :
unsigned health_;
int main(int argc, char *argv[])
{
srand( time(0) );
int i;
int rNum = rand() % 10 + 1;
// Do-while loop to
do {
return EXIT_SUCCESS;
}
Last edited on Jul 26, 2009 at 8:38pm Jul 26, 2009 at 8:38pm UTC
Jul 26, 2009 at 8:40pm Jul 26, 2009 at 8:40pm UTC
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#include <cstdlib>
#include <iostream>
#include <ctime>
#include <cmath>
using namespace std;
class Player {
public :
explicit Player ( unsigned initial_health = 100 ) : health_ ( initial_health ) { }
private :
unsigned health_;
};
int main(int argc, char *argv[])
{
srand( time(0) );
int i;
int rNum = rand() % 10 + 1;
// Do-while loop to
do {
return EXIT_SUCCESS;
}
EDIT : oops code tags
Last edited on Jul 26, 2009 at 8:41pm Jul 26, 2009 at 8:41pm UTC