Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/66.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在writeln函数中写入撇号符号-Pascal_Pascal - Fatal编程技术网

在writeln函数中写入撇号符号-Pascal

在writeln函数中写入撇号符号-Pascal,pascal,Pascal,如何使用writeln函数在Pascal中打印撇号符号 例如: writeln('My brother's book'); 无法工作,因为s book没有“编写”函数,因此编译器返回错误: Fatal: Syntax error, ")" expected but "identifier S" found Fatal: Compilation aborted 根据:通过键入两次,可以将单引号字符嵌入字符串中: writeln('By brother''s book'); 在Dev Pasc

如何使用
writeln
函数在Pascal中打印撇号符号

例如:

writeln('My brother's book');
无法工作,因为
s book
没有“编写”函数,因此编译器返回错误:

Fatal: Syntax error, ")" expected but "identifier S" found
Fatal: Compilation aborted
根据:通过键入两次,可以将单引号字符嵌入字符串中:

writeln('By brother''s book');

在Dev Pascal 1.9.2中,您将需要三个
'
,例如:

writeln ('My brother'''s book');