Built Something Cool on Compilr? We want to show it off!!!
Hey everyone,
The Compilr team is going to be putting together a video tutorial of Compilr. Instead of a cookie cutter example of code, we want to show off something cool one of our users has built.
So, please let us know if you have built something cool you would like to nominate or if there is a public project in the Explore tab you want to nominate.
Hey magius96,
We're just looking for any general cool projects, maybe a simple tic-tac-toe game or accounting software. Anything really. I'll wait a little while to see if anyone else has any suggestions and if not I'll look into your tutorials.
I started some code that is public.
But I don't see any Compile Button ?!?
How do we test our code if we can't emulate, run a parser, or compile?
ps. i'm a mechanical guy so bare with me on this software stuff, thanks.
What languages are you trying to compile?
I mostly use C or PHP
so I'm trying to compile C that should be acceptable to a C++ compiler.
Also is it possible to select the target we are designing for? such as ARM, AVR, x86?
thanks
Hi - At the moment our online compiler doesn't support C/C++. You can write code, but you're not able to compile it.
We are working hard on that functionality.
how i can see output after built of C# program.
Once you have built your program, you will need to compile it and run it locally on your machine.
am suppoed to:
Write a program that allows two people to play Nim. The
program should start by creating four piles of sticks, each
with a number of sticks that varies from 4 to 8. Display
the piles on the screen. The program should then prompt
the first player to remove a number of sticks from a pile.
Once that player has provided valid input, the program
should then adjust the piles and display the new
configuration. This process should continue until one
player has won the game, at which point the computer should
display a congratulatory message to the winner. At the end
of the game, the computer should start a new game if the
users wish to do so. Once the players state that they are
done, the computer should print the games won by each
player.
And this is what i got so far anyone wanna help me finsih it it would be so helpful :)
class Nimgame
{
public static void main (String[]args)
{
playerName();
pilestack();
ChoosePile();
printPileStick();
}
public static void playerName()
{
System.out.print ("P1 Enter your name: ");
char P1 = In.readChar();
System.out.print ("P2 Enter your name: ");
char P2 = In.readChar();
}
public static int pilestack ()
{
System.out.println ( " " );
int a = 1;
for ( a = 1; a<=4; a++)
{
System.out.println (" ");
int pile = (int)(Math.random()* 4 + 4);
System.out.println("pile " + a + " have " + pile + " sticks");
}
return a;
}
public static void ChoosePile()
{
System.out.println(" ");
System.out.println("P1 CHOOSE YOUR PILE");
System.out.println(" ");
int ChoosepileP1 = In.readInt();
System.out.println(" ");
System.out.println ("P1 CHOOSE YOU NUMBER OF STICKS(MAX OF 3)");
System.out.println(" ");
int ChooseStickP1 = In.readInt();
System.out.println(" ");
System.out.println("P2 CHOOSE YOUR PILE");
System.out.println(" ");
int ChoosepileP2 = In.readInt();
System.out.println(" ");
System.out.println ("P2 CHOOSE YOU NUMBER OF STICKS (MAX OF 3)");
System.out.println(" ");
int ChooseStickP2 = In.readInt();
System.out.println(" ");
}
}
If you don't get enough responses, or just need a project to fill the void, I've got three tutorial projects that you can use. If you could suggest what kind of apps your looking to demo, then I may be able to write one for you if I have the time. Of course all my projects will be in C#.
----------------------------------------------------------------------------------------------------
"Coding your life, Compiling your dreams, and crashing your future."
Compilr - C# and VB.NET Advisor