The first item in the inner vector is the key (in this case, movie-title), and the second is the value (in this case, an integer representing the running time).
内部矢量中的第一项是键(本例中为 movie-title),第二项是值(本例中是一个表示放映时间的整数)。
Now what if you want to add 3 to each integer in the vector?
现在,如果你想添加3向量中的每个整数?
Vector USES two primitive data types — string (element data) and Integer (element count).
Vector使用两个原始数据类型:string(元素数据)和Integer(元素计数)。
应用推荐