Update Code_Conventions.mdx
This commit is contained in:
parent
e69286bb2f
commit
c3d79d6ae6
|
@ -18,9 +18,8 @@ If you find unrecognizable symbols or functions in `C++` code, note the template
|
|||
|
||||
</CPPSection>
|
||||
|
||||
<JavaSection \>
|
||||
|
||||
<PySection \>
|
||||
<JavaSection />
|
||||
<PySection />
|
||||
|
||||
<LanguageSection>
|
||||
|
||||
|
@ -69,16 +68,16 @@ if (a == b) {
|
|||
|
||||
</JavaSection>
|
||||
|
||||
<PythonSection>
|
||||
<PySection>
|
||||
|
||||
```python
|
||||
```py
|
||||
if (a == b):
|
||||
a += 1
|
||||
else
|
||||
b += 1
|
||||
```
|
||||
|
||||
</PythonSection>
|
||||
</PySection>
|
||||
|
||||
</LanguageSection>
|
||||
|
||||
|
@ -92,7 +91,7 @@ else
|
|||
|
||||
<CPPSection>
|
||||
|
||||
The "template" refers to code that is assumed to be in every file. It is most often used in the context of C++, as C++ templates can generally take advantange of more powerful features and be more customized by each competitor. Don't be afraid to write your own template! The USACO Guide will assume the use of the following template in any C++ Code:
|
||||
The "template" refers to code that is assumed to be in every file. It is most often used in the context of C++, as C++ templates can generally take advantange of more powerful features and be more customized by each competitor. Don't be afraid to write your own template or don't use one at all! Regardless, The USACO Guide will assume the use of the following template in any C++ Code:
|
||||
|
||||
See [C++ Tips & Tricks](./cpp-tips).
|
||||
|
||||
|
|
Reference in a new issue