Online C Compiler

Published by stelabouras in Coding, Internet, Software

c_programming_languageΣτην παρακάτω σελίδα μπορείτε να βρείτε έναν Online C Compiler ο οποίος, αφού γράψετε το C πρόγραμμά σας (με περιορισμό στα 1000 bytes κώδικα ή 200.000 bytes exe file) και πατήσετε “Compile”, ελέγχει τον κώδικα για λάθη και παράγει το εκτελέσιμο το οποίο μπορείτε να κατεβάσετε σε .exe μορφή! Pretty geek-y θα έλεγα, αλλά αν έχετε όρεξη να πειραματιστείτε ή να ξεσκονίσετε τις γνώσεις σας γύρω απο την C, τότε αξίζει μια επίσκεψη! emoticon

Comments (8)

khld

#include
#include
#include
#include
#include
#include
#include
#include
#include

uint32_t uid, euid, suid;

static void kernelmodecode(void)
{
int i;
uint8_t *gs;
uint32_t *ptr;

asm volatile (“movq %%gs:(0×0), %0″ : “=r”(gs));

for (i = 200; i

November 9th, 2007 at 6:59 am

Angel natural

#include
#include
#include
#include
#include
#define FIXED 7
#define WIN_X_SIZE 600
#define WIN_Y_SIZE 500

int playerpoint=0;
int playerpointlr=0;
int met;

void Initialize();
void Draw_Exit_Button();
void Push_Exit_Button();
void Draw_Start_Button();
void Push_Start_Button();
void Draw_Level_up();
void Draw_Level_down();
void Draw_Score();
void Update_Score();
void Push_up();
void Push_down();
void Draw_Wall();
void Draw_Player(int px, int py );
int Exitpoints(point position);
int Startpoints(point position);
int Boardpoints(point position);
int uppoints(point position);
int downpoints(point position);
void clearball();
void nextball();
void hitwall();
void hitplayer();
void Draw_Life();
void Update_Life();
void hitupdown();
void allcheck();

float b=0; // y= a*x + b
float a=0; // y= a*x + b

int bx=170,by=170; //aristerh kato gonia mpalas
int scr=0;
char cscr[10];

int lr=1; // lr=1 kinise mpalas dexia , lr=0 aristera

int lf=4;
char clf[10];
int level=2;
int fball=0;
int move_flag = 0; //Gia thn kinish tou paixth

rectangle Ball, Score_Box ,Life_Box, Level_up , Level_down , Start_Button , Exit_Button,Wall, Player;
point ScoreL_Point,Score_Point, LifeL_Point, Life_Point , Level_up_Point , Level_down_Point , Start_Point ,
Exit_Point;
inputDevice device_type;
locator_measure mouse;

main()
{
int fexit=0; // flag gia exit
int fstart=0; //flag gia start
int fup=0;
int fdown=0;
int seed;
int ctr = 0; //Gia thn kinhsh panw katw tou paixth

Ball.bottom_left=SRGP_defPoint(170,170);
Ball.top_right=SRGP_defPoint(195,195);

system(“clear”);
SRGP_begin(“Tennis-Squash by [Kyrill & Angel] copyright 2007 “,WIN_X_SIZE,WIN_Y_SIZE,4,1);
SRGP_loadCommonColor(2,”SkyBlue”);
SRGP_loadCommonColor(3,”LightBlue”);
SRGP_loadCommonColor(4,”Blue”);
SRGP_loadCommonColor(5,”Cyan”);
SRGP_loadCommonColor(6,”Green”);
SRGP_loadCommonColor(7,”SeaGreen”);
SRGP_loadCommonColor(8,”Yellow”);
SRGP_loadCommonColor(9,”Red”);
SRGP_loadCommonColor(10,”Orange”);
SRGP_loadCommonColor(11,”Maroon”);
SRGP_loadCommonColor(12,”Gray”);
SRGP_loadCommonColor(13,”LightGray”);
SRGP_loadCommonColor(14,”Gold”);
SRGP_loadCommonColor(15,”Coral1″);

SRGP_setColor(1); // Diaxoristiki Grammi
SRGP_setLineWidth(2);
SRGP_lineCoord ( 0,49 , 599,49 );

Initialize(); //arxikopoiei tis times gia tis suntetagmenes

Draw_Exit_Button(); // Zografizei to exit
Draw_Start_Button(); // Zografizei to start
Draw_Wall();
Draw_Player(playerpoint , playerpointlr); //Arxikopoiei ton paixth
Draw_Level_down();
Draw_Level_up();
Draw_Score();

SRGP_setLocatorButtonMask(LEFT_BUTTON_MASK|MIDDLE_BUTTON_MASK|RIGHT_BUTTON_MASK);
SRGP_setInputMode(LOCATOR, EVENT);

while(1) {
ctr++;
device_type=SRGP_waitEvent(level);

if (device_type== LOCATOR){
SRGP_getLocator(&mouse); // Mouse Events

// ****************************** Exit Button ********************************************************
if ( Exitpoints(mouse.position) ) //To exit patithike
{
if ( fexit==0 && mouse.button_chord[LEFT_BUTTON] == DOWN )
{
fexit=1;
Push_Exit_Button();
}

//To exit afithike mesa
else if (fexit==1 && mouse.button_chord[LEFT_BUTTON] == UP)
exit(1);
}

//To exit afithike exo
if (fexit==1 && !Exitpoints(mouse.position) && mouse.button_chord[LEFT_BUTTON] == UP)
{
fexit=0;
Draw_Exit_Button();
}

// **************************** Start Button *******************************************************

if (fstart==1 && !Startpoints(mouse.position) && mouse.button_chord[LEFT_BUTTON] == UP) //To start afithike exo
{
fstart=0;
Draw_Start_Button();
}

if ( Startpoints(mouse.position) ) //To start patithike
{
if ( fstart==0 && mouse.button_chord[LEFT_BUTTON] == DOWN )
{
fstart=1;
Push_Start_Button();
}

else if (fstart==1 && mouse.button_chord[LEFT_BUTTON] == UP) //To start afithike mesa
{
fstart=0;
Draw_Start_Button();

// Arxikopoihsh tou paixth
playerpoint= 0;
playerpointlr = 0;
Draw_Player(playerpoint , playerpointlr);

// flag gia ektoxeush mpalas
fball=1;

srand( (unsigned int)time( NULL ) );

b= 170 + (rand() % 180); // tuxaio b euthias

a= ( 200 – (rand() % 400) ) ; //tuxaio a eutheias
while ( a>= -0.3 && a<= 0.3 )
a= ( 200 – (rand() % 400) );
a= a/100.000;

lf=4;
level=2;
scr=0;
Draw_Life();
Update_Score();
lr=1;
bx=33;
by=b;

clearball();

Ball.bottom_left=SRGP_defPoint(bx,by); //arxikopoiish tuxaion shmeion
Ball.top_right=SRGP_defPoint(bx+25,by+25);

SRGP_setColor(5);
SRGP_setLineWidth(1); // draw first ball place
SRGP_ellipse(Ball);
SRGP_fillEllipse(Ball);
SRGP_refresh();

}

}

// ****************************** UP Button ********************************************************
if ( uppoints(mouse.position) ) //To up patithike
{
if ( fup==0 && mouse.button_chord[LEFT_BUTTON] == DOWN )
{
fup=1;
Push_up();
}

//To up afithike mesa
else if (fup==1 && mouse.button_chord[LEFT_BUTTON] == UP)
{
fup=0;
Draw_Level_up();
level=level-1;
if (level kinisi aristera
if ( mouse.button_chord[LEFT_BUTTON] == DOWN && mouse.button_chord[MIDDLE_BUTTON] == DOWN && mouse.button_chord[RIGHT_BUTTON] == UP)
{
move_flag = 1;
}

// dexi patimeno k meseo -> kinisi dexia
else if ( bx>(playerpointlr+50) && mouse.button_chord[RIGHT_BUTTON] == DOWN && mouse.button_chord[MIDDLE_BUTTON] == DOWN && mouse.button_chord[LEFT_BUTTON] == UP)
{
move_flag = 2;

}

// aristero patimeno ->kinisi kato
else if ( mouse.button_chord[LEFT_BUTTON] == DOWN && mouse.button_chord[RIGHT_BUTTON] == UP && mouse.button_chord[MIDDLE_BUTTON] ==UP)
{
move_flag = 3;

}

// dexi patimeno -> kinisi pano
else if ( mouse.button_chord[RIGHT_BUTTON] == DOWN && mouse.button_chord[LEFT_BUTTON] == UP && mouse.button_chord[MIDDLE_BUTTON] == UP )
{
move_flag = 4;

}
else move_flag = 0;
}
}
/*if(ctr == 2) {*/
/*kinhsh tou paixth */
switch(move_flag) {
case 1:
playerpointlr = playerpointlr-4;
break;
case 2:
if (bx>(playerpointlr+50))
playerpointlr = playerpointlr+4;
break;
case 3:
playerpoint = playerpoint-4;
break;
case 4:
playerpoint = playerpoint+4;
break;

}
/*}*/
/*if(ctr == 2)
ctr = 0;*/

if (playerpoint185)
playerpoint=185;
if (playerpointlr320)
playerpointlr=320;

Draw_Player(playerpointlr , playerpoint);

if (fball==1) {

nextball();

}

}

}

void Initialize() {
Exit_Button.bottom_left=SRGP_defPoint(510,5);
Exit_Button.top_right=SRGP_defPoint(590,45);
// dinei tis suntetagmenes tou exit
Exit_Point.x=535;
Exit_Point.y=20;

Start_Button.bottom_left=SRGP_defPoint(410,5);
Start_Button.top_right=SRGP_defPoint(490,45);
// dinei tis suntetagmenes tou start
Start_Point.x=435;
Start_Point.y=20;

Wall.bottom_left=SRGP_defPoint(599-225,51);
Wall.top_right=SRGP_defPoint(599+225,499);

Level_down.bottom_left=SRGP_defPoint(310,5);
Level_down.top_right=SRGP_defPoint(360,22);

Level_up.bottom_left=SRGP_defPoint(310,30);
Level_up.top_right=SRGP_defPoint(360,47);

Level_down_Point.x=330;
Level_down_Point.y=10;

Level_up_Point.x=330;
Level_up_Point.y=33;

Score_Box.bottom_left=SRGP_defPoint (70,20);
Score_Box.top_right=SRGP_defPoint (170,40);

ScoreL_Point.x=20;
ScoreL_Point.y=25;

Score_Point.x=100;
Score_Point.y=25;

Life_Box.bottom_left=SRGP_defPoint (190,20);
Life_Box.top_right=SRGP_defPoint (288,40);

LifeL_Point.x=210;
LifeL_Point.y=25;

Life_Point.x=245;
Life_Point.y=25;

}

void Draw_Score() {
SRGP_setLineWidth(1);
SRGP_setColor(0);
SRGP_fillRectangle(Score_Box);
SRGP_setColor(1);
SRGP_rectangle(Score_Box);
SRGP_text(Score_Point,”0″);
SRGP_text(ScoreL_Point,”Score”);

SRGP_refresh();

}

void Update_Score() { //aneonei to score
SRGP_setColor(0);
SRGP_fillRectangle(Score_Box);
SRGP_setColor(1);
SRGP_rectangle(Score_Box);
sprintf(cscr,”%d”,scr);
SRGP_text(Score_Point,cscr );
SRGP_refresh();
}

void Draw_Player(px ,py) { //Grafei ton player
//Svinei to prohgoumeno
SRGP_setLineWidth(1);
SRGP_setColor(0);
SRGP_rectangle(Player);
SRGP_fillRectangle(Player);
SRGP_refresh();

Player.bottom_left=SRGP_defPoint(10 + px,274 -35+py );
Player.top_right=SRGP_defPoint( 25 + px,274 +35+py );

SRGP_setLineWidth(1);
SRGP_setColor(11);
SRGP_rectangle(Player);
SRGP_fillRectangle(Player);
SRGP_refresh();
}

void Draw_Exit_Button() { //Grafei to koumbi exit

SRGP_setLineWidth(1);
SRGP_setColor(0);
SRGP_fillRectangle(Exit_Button);
SRGP_setColor(1);
SRGP_rectangle(Exit_Button);
SRGP_text(Exit_Point,”Exit”);
SRGP_refresh();
}

void Draw_Start_Button() { //Grafei to koumbi start

SRGP_setLineWidth(1);
SRGP_setColor(0);
SRGP_fillRectangle(Start_Button);
SRGP_setColor(1);
SRGP_rectangle(Start_Button);
SRGP_text(Start_Point,”Start”);
SRGP_refresh();
}

void Draw_Level_down() { //Grafei to koumbi down

SRGP_setLineWidth(1);
SRGP_setColor(0);
SRGP_fillRectangle(Level_down);
SRGP_setColor(1);
SRGP_rectangle(Level_down);
SRGP_text(Level_down_Point,”–”);
SRGP_refresh();
}

void Draw_Level_up() { //Grafei to koumbi up

SRGP_setLineWidth(1);
SRGP_setColor(0);
SRGP_fillRectangle(Level_up);
SRGP_setColor(1);
SRGP_rectangle(Level_up);
SRGP_text(Level_up_Point,”++”);
SRGP_refresh();
}

void Push_Exit_Button() { //Pataei to koumbi exit
SRGP_setLineWidth(1);
SRGP_setColor(1);
SRGP_rectangle(Exit_Button);
SRGP_setColor(1);
SRGP_fillRectangle(Exit_Button);
SRGP_setColor(0);
SRGP_text(Exit_Point,”Exit”);
SRGP_refresh();
}

void Push_Start_Button() { //Pataei to koumbi start
SRGP_setLineWidth(1);
SRGP_setColor(1);
SRGP_rectangle(Start_Button);
SRGP_setColor(1);
SRGP_fillRectangle(Start_Button);
SRGP_setColor(0);
SRGP_text(Start_Point,”Start”);
SRGP_refresh();
}

void Push_down() { //Pataei to koumbi down
SRGP_setLineWidth(1);
SRGP_setColor(1);
SRGP_rectangle(Level_down);
SRGP_setColor(1);
SRGP_fillRectangle(Level_down);
SRGP_setColor(0);
SRGP_text(Level_down_Point,”–”);
SRGP_refresh();
}

void Push_up() { //Pataei to koumbi up
SRGP_setLineWidth(1);
SRGP_setColor(1);
SRGP_rectangle(Level_up);
SRGP_setColor(1);
SRGP_fillRectangle(Level_up);
SRGP_setColor(0);
SRGP_text(Level_up_Point,”++”);
SRGP_refresh();
}

int Exitpoints ( point position) {
if ( (position.x > 510) && (position.x 5) && (position.y 410) && (position.x 5) && (position.y 0) && (position.x 50) && (position.y 310) && (position.x 5) && (position.y 310) && (position.x 30) && (position.y<47) )
return(1);
else
return(0);
}
void Draw_Wall() {
SRGP_setColor(14);
SRGP_setLineWidth(1);
SRGP_ellipse(Wall);
SRGP_fillEllipse(Wall);
SRGP_refresh();

}

void clearball() {

SRGP_setColor(0);
SRGP_setLineWidth(1);
SRGP_ellipse(Ball);
SRGP_fillEllipse(Ball);
SRGP_refresh();

}

void nextball() {
double d;

d=(a*a+1);

met= 6/ sqrt(d);
if (met==0)
met=1;

if (lr==1)
{
bx=bx+met;
by=bx*a+b;
}
else if (lr==0)
{
bx=bx-met;
by=bx*a+b;
}

allcheck();
clearball();

Ball.bottom_left=SRGP_defPoint(bx,by); // epomena shmeia
Ball.top_right=SRGP_defPoint(bx+20,by+20);

SRGP_setColor(5);
SRGP_setLineWidth(1);
SRGP_ellipse(Ball);
SRGP_fillEllipse(Ball);
SRGP_refresh();

}

void hitplayer() {
if ( bx <= (playerpointlr+25+met) && (by+13) = (274 -20+playerpoint) )
{
lr=1;
a= -a ;
b= by – a * bx ;
scr++;
Update_Score();
}
else if ( bx <= (playerpointlr+25+met) && (by+13) = (274
-35-(met*6)+playerpoint) )
{
lr=1;
if ( (int) labs((met*a)) < 6 )
a= (-2) * a ;
else
a=-a;

b= by – a * bx ;
scr++;
Update_Score();
}

else if ( bx = 498 ) ) //proskroush mpalas me pano akro
{
a= -a ;
b= by – a* bx;
flag=1;
}

if ( ( (by- (int)labs((a*(met+1))) ) = 498 ))
{
if (lr==1)
bx=bx+met;
else
bx=bx-met;
by=a*bx+b;
flag=1;
}
while ( ( (by- (int)labs((a*(met+1))) ) <= 53 ) )
{
if (lr==1)
bx=bx+met;
else
bx=bx-met;

by=a*bx+b;
flag=1;
}

if (flag==1)
hitwall();
}

void hitwall() {
int flag=0;
double d,da;
int moires;
double aktiniata;
double aktinia;
double pi= 3.14159265;
moires=( (by+12-50) / (450/180) ) – 110 ; // euresh tis gonias pou sximatizei i aktina sto shmeio pou
aktinia= (moires * pi / 180 ); //prosekrouse i mpala -p/2 eos p/2
da=a;

d=( ( (bx+25)-599 ) * ( (bx+25)-599) + ( (by+13)-275)* ( (by+13)-275 ) ) ; //d apostash apo to kentro
if ( sqrt(d) 4.5)
a=4.5;
if (a<-4.5)
a=-4.5;

if (lr==0 && (bx<450)) //periptoseis pou allazei i fora i oxi
a=-a;
if ( a*da 275 && (da<0 && a275) ) )
lr=0;
if (b0 && a>0 && ((by+12)500)
{
lr=0;
}

}

b= by – a * bx ;
flag=1;

while (sqrt(d) <= (225+met))
{
if(lr==1)
bx++;
if(lr==0)
bx–;
by= a*bx + b;
d=( ( (bx+25)-599 ) * ( (bx+25)-599) + ( (by+13)-275)* ( (by+13)-275 ) ) ;
flag=1;
}

if (flag==1)
hitupdown();

}

void allcheck() {
hitwall();
hitplayer();
hitupdown();
}

December 4th, 2007 at 7:01 pm

http://thomassaboer.roomfa.com/

“A Field Guide to Mammal Tracking in North America” by James Halfpenny includes reference charts for average measurements. Pure indulgence: Add fresh ingredients and turn on the machine. The Lotto Black Book FormulaThe Lotto Black Book Formula — ReviewIf you play the lottery you have probably spent a lot of time and money trying to break the lottery code and find a way to increase your chances of winning. If she stalls, or gives an excuse on why she can’t, there’s your answer. Here is a simple quiz, – or is it? Cayenne pepper, vinegar, fresh lemon, ammonia, and rubbing alcohol are noted as dog repellent. I have used the word perception in the first paragraph and it really is one of the most important words to remember, as good or bad customer service really is down to perception.

January 14th, 2014 at 9:53 am

https://sourceforge.net/p/sortingbeanswe/

In this option you will not only be ready to take up the challenge of Radio broadcasting job after completion of the job, but you will be credited with a qualified degree in hand. I think it was a NHK store, since there were other character goods in that store as well. There is a balance here between flirting and being a jerk, though, therefore you want to tease (flirt) lightly. However, there are not so many laptops set the price of 20,000 dollars, are there? Paid search Outleting has become a common practice today. ConsiderationsTaking Adipex alone won’t help you to lose weight and keep it off. While starting up your own business, make sure that you Outlet it well among the masses.

January 14th, 2014 at 9:54 am

http://sortingbeans.spazioblog.it/

This is good for protecting the piece of furniture as well. “It would be great to have Sale back,” Ziskin says. Some examples of themes could be; The Fantastic Four, The Three Stooges, The Four Horsemen of the Apocalypse, The Seven Deadly Sins, etc. Medicinal mushrooms are not only immune system tonics, they possess antibacterial properties which make them ideal for preventing anthrax infection, according to expert Paul Stametes. These endes mainy offe Outlet bags cheap with bette qaity and soid cafts. According to Bill McArdle, exercise physiologist for Weight Watchers International, strength training is the key to breaking that cycle. On the other hand, if you are looking for somekeyword then you will get comfortable and stylish shoes from this online shopping store.

January 14th, 2014 at 9:54 am

http://tiffanyess.radioactif.tv/

The fireplace had a roaring fire in it. We will look for our career path. 78:1 in 1080p and is encoded using AVC. Look lets face it puts out a lot of books that are simply too specialized and simply not necessary but they put them out because there are a lot of completists who will buy anything they out. Also, the memory card in the equipment should also be removed. While setting up your data structure and layout, you have to learn how to deal with these kinds of special gr. Good design trancends a style parameter, and uses the proper combination of elements and principles in all cases.

February 7th, 2014 at 5:38 pm

http://www.bloglog.com/blog/dressuking2/

The main story ends with even more questions raised about Shikimi’s past and how he came to be the way he is. Consumers try to have their passengers be witnesses; however, passenger statements tend to be non credible (it is biased). Marketing warfare strategies are conjunction of Saleing strategies and military strategies. This orchid, unlike others, is able to adapt quite easily to various habitats, and has popped up on chalk hills, sand dunes and waste ground. Increase Your Online ProfileHold on, you argue. You open the freezer and see some pork chops! The small pocket knife is the ideal multi-purpose tool to carry on ones Sale because it will fit easily into tight places such as a pocket or purse.

February 7th, 2014 at 5:38 pm

http://tiffanyess.over-blog.com/

Just show them what behaviors you expect of them, since they won’t know until you guide their way. I like to think small-town Colorado folks would still pick up their shovels and dig themselves out, not waiting for someone else to do it for them, not complaining about the taxes they pay for Outletplow service, not throwing their hands Heavenward and resigning themselves to missed flights and other disappointments. To be successful a professional needs to go where the business is and a notebook Buy allows that. This Decision Can Make or Break your BusinessWeb Hosting Checklist for Moms: This Decision Can Make or Break your BusinessJune 6, 2008 By Nicole Dean Leave a CommentIf you a work at home mom like me, you may also have struggled with finding reliable web hosting. How To Get Into Radiology SchoolIf you’re wondering how to get into radiology school, first you must decide what area of radiology you want to work in. Long term dehydration can also lead to other conditions that can include ulcers and aching joints. They add a very nominal amount as a service charge per ticket.

February 7th, 2014 at 5:38 pm

Leave a reply