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.
基本上,是的,一切都如上所述。但我想在不使用矢量类的情况下做到这一点。
提前致谢
三个步骤:
作为第 2 步和第 3 步的替代方法,您还可以动态扩大阵列或使用最大尺寸。请注意,我故意不告诉您如何执行所有这些操作,以免破坏您的学习体验。如果您有具体的代码,欢迎您提出更具体的问题。