Click here to Skip to main content
12,395,358 members (63,708 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: Javascript Java PHP JSP
how to compile a c program written in online web browser and take the program to server side and take back the compiled answer to web browser to dispaly answer
Posted 1-Feb-13 2:39am
Comments
joshrduncan2012 1-Feb-13 9:14am
   
What steps have you taken to try to solve this problem so far?
   
Why?
—SA

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Do the following:
1) save the submitted text into a local file
2) run the C compiler on that file
3) zip the result
4) post that zip file to a public folder
5) provide the link to the published zip file

Details to be elaborated by you - access rights and security issues too... Wink | ;-)
Cheers
Andi
  Permalink  
Comments
   
Hard to argue against the steel logic :-), a 5. The only problem is: why?
—SA
Andreas Gieriet 1-Feb-13 19:36pm
   
Thanks for your 5!
Not everything needs a reason... ;-)
Some people collect stamps - a life long - why? I don't know... ;-)
Cheers
Andi
   
Yee... but I can imagine... having a vivid imagination and empathic abilities... :-)
—SA
Andreas Gieriet 1-Feb-13 20:07pm
   
I have first hand experience, minus the "life long" part ;-)
The "why", I still don't know. The "why not", I do for my self.
But this is not against anyone who collects anything (like stamps) - it's just to show: not everything needs a reason, unless one accepts "just for fun" (or similar) as a reason (well, in fact, I do :-))
E.g. posting answers here is "just for fun" too - a bit addictive - but still fun.
Cheers
Andi

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160721.1 | Last Updated 1 Feb 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100