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.
可以给向量的创建一个数字,例如:
vet int [] = new int vet [100].
但是,如果我要创建一个注册程序并由用户决定注册多少,我将如何制作这个条目?
int quantidade = Integer.parseInt(JOptionPane.showMessagerDialog(null," digite a quantidade")); int vet [] = new int vet [quantidade]