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.
我写了这个程序,但我有一个变量“年龄”。我如何做到这一点,这样我就不必每年改变狗的年龄?换句话说,它应该自动改变。
而不是保存年龄,您应该保存生日,这样可以在需要时计算年龄