"카타 8급 Basic variable assignment"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight))
 
1번째 줄: 1번째 줄:
==C==
==C==
{{카타|8급|C|1}}
{{카타|8급|C|1}}
<source lang='c'>
<syntaxhighlight lang='c'>
const char *name = "codewa.rs";
const char *name = "codewa.rs";
</source>
</syntaxhighlight>
<source lang='c'>
<syntaxhighlight lang='c'>
const char *a = "code";
const char *a = "code";
const char *b = "wa.rs";
const char *b = "wa.rs";
const char *name = "codewa.rs";
const char *name = "codewa.rs";
</source>
</syntaxhighlight>


==C++==
==C++==
{{카타|8급|C++|1}}
{{카타|8급|C++|1}}
<source lang='cpp'>
<syntaxhighlight lang='cpp'>
std::string a = "code";
std::string a = "code";
std::string b = "wa.rs";
std::string b = "wa.rs";
std::string name = a+b;
std::string name = a+b;
</source>
</syntaxhighlight>
<source lang='cpp'>
<syntaxhighlight lang='cpp'>
std::string a = "code";
std::string a = "code";
std::string b = "wa.rs";
std::string b = "wa.rs";
std::string name = a.append(b);
std::string name = a.append(b);
</source>
</syntaxhighlight>
<source lang='cpp'>
<syntaxhighlight lang='cpp'>
std::string a = "code";
std::string a = "code";
std::string b = "wa.rs";
std::string b = "wa.rs";
std::string name = "codewa.rs";
std::string name = "codewa.rs";
</source>
</syntaxhighlight>
<source lang='cpp'>
<syntaxhighlight lang='cpp'>
std::string name = "codewa.rs";
std::string name = "codewa.rs";
</source>
</syntaxhighlight>


==JavaScript==
==JavaScript==
{{카타|8급|JavaScript|1}}
{{카타|8급|JavaScript|1}}
<source lang='JavaScript'>
<syntaxhighlight lang='JavaScript'>
</source>
</syntaxhighlight>
<source lang='JavaScript'>
<syntaxhighlight lang='JavaScript'>
</source>
</syntaxhighlight>
<source lang='JavaScript'>
<syntaxhighlight lang='JavaScript'>
</source>
</syntaxhighlight>


==PHP==
==PHP==
{{카타|8급|PHP|1}}
{{카타|8급|PHP|1}}
<source lang='php'>
<syntaxhighlight lang='php'>
$a = "code";
$a = "code";
$b = "wa.rs";
$b = "wa.rs";
$name = $a . $b;
$name = $a . $b;
</source>
</syntaxhighlight>
<source lang='php'>
<syntaxhighlight lang='php'>
$name = "codewa.rs";
$name = "codewa.rs";
</source>
</syntaxhighlight>

2020년 11월 2일 (월) 02:41 기준 최신판

1 C[ | ]

const char *name = "codewa.rs";
const char *a = "code";
const char *b = "wa.rs";
const char *name = "codewa.rs";

2 C++[ | ]

std::string a = "code";
std::string b = "wa.rs";
std::string name = a+b;
std::string a = "code";
std::string b = "wa.rs";
std::string name = a.append(b);
std::string a = "code";
std::string b = "wa.rs";
std::string name = "codewa.rs";
std::string name = "codewa.rs";

3 JavaScript[ | ]

4 PHP[ | ]

$a = "code";
$b = "wa.rs";
$name = $a . $b;
$name = "codewa.rs";