Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am relatively new to ASP but well educated on C# & C

I have multiples problems.

1. I want to develop asp page like the codepad. now limiting to compiling only C codes. i choose tiny c compiler . it says it can take program inputs from standard input but on win xp it says "declaration missing"

2. How do I take text from the textbox and save it in a file and run it consecutively. Giving commands is very easy . See: this article[^]

3. How do I display color syntax highlighting in textbox ??

Please try to answer from purely academic point of view. Try to give links to solutions that you think are the most appropriate.

Give any other alternative command line c compiler.
Posted
Updated 23-Jul-10 9:23am
v2
Comments
Khaniya 28-Jul-10 9:19am    
why are you asking questions like this
Please do not do same again

Make new question on every new question
so it can be useful while other people searching for solutions

Thanks

1) You're going to need more info to get #1 answered. When do you get that error? How are you invoking it?

2) Input fields in web pages are typically in a form. The form is POSTed back to the server when the user submits the form. The form value can be read through the Request.Form[] collection or through model binding in ASP.NET MVC. You only need to browse this site to find countless examples of saving data to a database. Another good resource would be to Bing "ScottGu"

3) Use a free JavaScript library to do this. Try this one[^].

FYI, all compilers in the .NET Framework are accessible via the command line.

Cheers.
 
Share this answer
 
here is the fragment from [tcc (Tiny C Compiler) documentation ^]

TCC can read C source code from standard input when `-' is used in place of `infile'. Example:

C#
echo 'main(){puts("hello");}' | tcc -run -


here is my screen shot ::

[IMG]http://i29.tinypic.com/b71h6w.jpg[/IMG]

http://i29.tinypic.com/b71h6w.jpg[^]
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900