一系列问题 [英] A series of Questions

查看:103
本文介绍了一系列问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对ASP还是比较陌生,但是对C#和& C

我有多个问题.

1.我想像键盘一样开发ASP页面.现在仅限于仅编译C代码.我选择微型C编译器.它说它可以从标准输入中获取程序输入,但是在win xp上它显示声明缺失"

2.如何从文本框中获取文本并将其保存在文件中并连续运行.发出命令非常容易.请参阅:本文 [

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.

推荐答案

1)您将需要更多信息才能获得#1的答案.您何时会收到该错误?您如何调用它?

2)网页中的输入字段通常采用表格形式.用户提交表单后,该表单将回发到服务器.可以通过Request.Form []集合或ASP.NET MVC中的模型绑定来读取表单值.您只需要浏览此站点,即可找到无数的将数据保存到数据库的示例.另一个好的资源是Bing"ScottGu"

3)使用免费的JavaScript库执行此操作.尝试
[ ^ ].

仅供参考,可以通过命令行访问.NET Framework中的所有编译器.

干杯.
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.


这是 [
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:

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



这是我的屏幕截图::

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

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



here is my screen shot ::

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

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


这篇关于一系列问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆