21. 言語例|C/C++
全部小文字
名前空間名は
using namespace std;
クラス名はSnake
class user_information
{
メンバ変数名はSnake
public:
int age;
int get_age()
{ メンバ関数名はSnake
return age;
}
}
22. 言語例|Java
パッケージ名は全部小文字
import java.util.*;
class UserInformation
クラス名は Pascal
フィールド名はCamel
{
public int age;
public int getAge() {
return age;
} メソッド名はCamel
}
23. 言語例|C#
名前空間名はPascal
using System.Drawing;
class UserInformation
クラス名は Pascal
フィールド名はPascal
{
public int Age;
public int Weight
{ get; set; } プロパティ名はPascal
public int GetAge() {
return age;
} メソッド名はPascal
}
30. 1. 名前は英語で
You are prohibited to use Japanese.
int kosuu;
char namae[256];
int kakeru(int kou, int otsu);
int number;
char name[256];
int multiply(int a, int b);