Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はこのプログラムを書きましたが、変数「年齢」があります。毎年犬の年齢を変える必要がないようにするにはどうすればよいですか? つまり、自動的に変更されるはずです。
年齢を保存する代わりに、誕生日を保存する必要があります。これにより、必要に応じて年齢を計算できます