Topic: 关于out.println()程序输出"符号??

  Print this page

1.关于out.println()程序输出"符号?? Copy to clipboard
Posted by: wewe8866
Posted on: 2006-11-10 10:30

编写程序输出,
out.println("(command "zoom" "all")");
"zoom" "all" 这里出错,”符号与命令行的符号冲突了好像,那我想输出"就没办法了么?
试验着单独输出”
out.println(""");
提醒说字符串没有关闭,要有double-quote。
怎么办,我很想把“输出;各位想想办法~

2.Re:关于out.println()程序输出"符号?? [Re: wewe8866] Copy to clipboard
Posted by: wewe8866
Posted on: 2006-11-10 10:43

用ASCII 码可以么 ?我查的它的码是034 ,不过怎么用啊?头疼

3.Re:关于out.println()程序输出"符号?? [Re: wewe8866] Copy to clipboard
Posted by: zcjl
Posted on: 2006-11-10 10:58

请使用转义符
out.println("(command \"zoom\" \"all\")");

4.Re:关于out.println()程序输出"符号?? [Re: wewe8866] Copy to clipboard
Posted by: wewe8866
Posted on: 2006-11-10 15:04

解决了 ,谢谢zcjl,原来这么简单啊 ,看来还是需要多多的经验啊,遇到了 才知道。

5.Re:关于out.println()程序输出"符号?? [Re: wewe8866] Copy to clipboard
Posted by: why
Posted on: 2006-11-10 19:44

wewe8866 wrote:
解决了 ,谢谢zcjl,原来这么简单啊 ,看来还是需要多多的经验啊,遇到了 才知道。

Youd should know this if you read your textbook carefully.
\" would be mentioned in the same chapter that brings you \n.

6.Re:关于out.println()程序输出"符号?? [Re: wewe8866] Copy to clipboard
Posted by: liushuiboy
Posted on: 2006-12-20 17:13

加个转义字符就可以了


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923