Aktywne Wpisy
Dla tych ślepo zakochanych w nowym rządzie. Poczytajcie sobie czasem coś głębszego
#sejm #koalicjaobywatelska
#sejm #koalicjaobywatelska
dylann +85
Skopiuj link
Skopiuj linkWykop.pl
Podróże
Gospodarka
Ukraina
Technologia
Motoryzacja
Sport
Rozrywka
Informacje
Ciekawostki
#cpp #programowanie #stl
Sprawdź sobie to przez wywołanie size() na rzecz tego wektora.
@asdasty: Miałoby, ustawiasz resize(4) a on tworzy 4 wyzerowane elementy. U ciebie tworzysz 3 a potem się chcesz do 20 dostać.
std::vector::resize
Change size
Resizes the container so that it contains n elements.
If n is smaller than the current container size, the content is reduced to its first n elements, removing those beyond (and destroying them).
If n is greater than the current container size, the content is expanded by inserting at the end as many elements as needed to reach a size of n. If val is specified, the
@sylwke3100: Nie można się odwołać bo ci to nie działa -.-
Chłopie po prostu powiedz co chcesz zrobić.
Spróbuj odczytać ten wektor np
cout<
Tak samo z ich zmianą