没有分号 [英] Without semicolons

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

问题描述

编写一个程序,将源代码形式的C程序作为输入,

打印具有等效行为的程序的源代码,但

不带分号,标准输出。


请注意我对DMS软件再造不感兴趣

工具包。


杰里米。

Write a program that takes a C program in source form as input and
prints the source code for a program with equivalent behaviour, but
without semicolons, on standard output.

Please note that I''m not interested in the DMS Software Reengineering
Toolkit.

Jeremy.

推荐答案

int main(int x,char * t []){if(puts(t [1])){}}


编译成文件''a''并在你的命令行中运行


a源来到这里
int main(int x, char *t[]){if(puts(t[1])){}}

compile to file ''a'' and run this in your command line

a "the source goes here"


Jeremy Yallop< je **** @ jdyallop.freeserve.co.uk>写道:
Jeremy Yallop <je****@jdyallop.freeserve.co.uk> writes:
编写一个程序,将源代码形式的C程序作为输入,并打印具有相同行为的程序的源代码,但没有分号,标准输出。
请注意我对DMS软件再造工具包不感兴趣。
Write a program that takes a C program in source form as input and
prints the source code for a program with equivalent behaviour, but
without semicolons, on standard output. Please note that I''m not interested in the DMS Software Reengineering
Toolkit.



是的,先生,我会继续直接编写这个程序离开。

我对DMS软件再造工具包也不感兴趣。


Chris。


Yes sir, I''ll get on to writing this program straight away.
I''m not interested in the DMS Software Reengineering Toolkit, either.

Chris.

Chris McDonald写道:
Chris McDonald wrote:
Jeremy Yallop< je **** @ jdyallop.freeserve.co.uk>写道:
Jeremy Yallop <je****@jdyallop.freeserve.co.uk> writes:
编写一个程序,将源代码形式的C程序作为输入,并打印具有相同行为的程序的源代码,但没有分号,标准输出。
Write a program that takes a C program in source form as input and
prints the source code for a program with equivalent behaviour, but
without semicolons, on standard output.


请注意我对DMS软件再造工具包不感兴趣。
Please note that I''m not interested in the DMS Software Reengineering
Toolkit.


<是的,先生,我会立即开始编写这个程序。
我对DMS软件再造工具包也不感兴趣。



Yes sir, I''ll get on to writing this program straight away.
I''m not interested in the DMS Software Reengineering Toolkit, either.




如果你要搜索档案(或潜伏一段时间)以便建立一些上下文,你可能不太愿意发布这样的粗鲁

(和荒谬的)回应。


Jeremy。



If you were to search the archives (or lurk for a while) in order to
establish some context, you might be less inclined to post such rude
(and absurd) responses.

Jeremy.


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

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