Files
uni/third/semester1/CT326: Programming III/notes/_minted-CT326-Notes/15763926F74EFA04BBE7030F5D4187CF67C30541BBFC1CABB82AC82DF38DC1A5.pygtex

9 lines
1.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8\relax}]
\PYG{n}{String}\PYG{+w}{ }\PYG{n}{myString}\PYG{+w}{ }\PYG{o}{=}\PYG{+w}{ }\PYG{l+s}{\PYGZdq{}Hello world!\PYGZdq{}}\PYG{p}{;}
\PYG{n}{String}\PYG{+w}{ }\PYG{n}{myString}\PYG{+w}{ }\PYG{o}{=}\PYG{+w}{ }\PYG{k}{new}\PYG{+w}{ }\PYG{n}{String}\PYG{p}{();}
\PYG{k+kt}{char}\PYG{+w}{ }\PYG{o}{[]}\PYG{+w}{ }\PYG{n}{ct326Array}\PYG{+w}{ }\PYG{o}{=}\PYG{+w}{ }\PYG{p}{\PYGZob{}}\PYG{+w}{ }\PYG{err}{}\PYG{n}{C}\PYG{err}{\PYGZsq{}}\PYG{p}{,}\PYG{+w}{ }\PYG{err}{}\PYG{n}{T}\PYG{err}{\PYGZsq{}}\PYG{p}{,}\PYG{+w}{ }\PYG{err}{}\PYG{l+m+mi}{3}\PYG{err}{\PYGZsq{}}\PYG{p}{,}\PYG{+w}{ }\PYG{err}{}\PYG{l+m+mi}{2}\PYG{err}{\PYGZsq{}}\PYG{p}{,}\PYG{+w}{ }\PYG{err}{}\PYG{l+m+mi}{6}\PYG{err}{\PYGZsq{}}\PYG{+w}{ }\PYG{p}{\PYGZcb{};}
\PYG{n}{String}\PYG{+w}{ }\PYG{n}{ct326String}\PYG{+w}{ }\PYG{o}{=}\PYG{+w}{ }\PYG{k}{new}\PYG{+w}{ }\PYG{n}{String}\PYG{p}{(}\PYG{n}{ct326Array}\PYG{p}{);}
\PYG{n}{String}\PYG{+w}{ }\PYG{n}{fs}\PYG{+w}{ }\PYG{o}{=}\PYG{+w}{ }\PYG{n}{tring}\PYG{p}{.}\PYG{n+na}{format}\PYG{p}{(}\PYG{l+s}{\PYGZdq{}The value of the float variable is \PYGZpc{}f, while the value of the integer variable is \PYGZpc{}d, and the string is \PYGZpc{}s\PYGZdq{}}\PYG{p}{,}\PYG{+w}{ }\PYG{n}{floatVar}\PYG{p}{,}\PYG{+w}{ }\PYG{n}{intVar}\PYG{p}{,}\PYG{+w}{ }\PYG{n}{stringVar}\PYG{p}{);}
\end{Verbatim}