Wpis z mikrobloga

@sylwke3100: Robisz coś nielogicznego. Ustawiasz rozmiar na 3, a potem próbujesz się dostać do 20. elementu wektora?! Visual Studio wywala błąd

Expression: vector subscript out of range


Sprawdź sobie to przez wywołanie size() na rzecz tego wektora.
@sylwke3100:

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
Ale czy nie zauważyłeś że do każdego z tych elementów co dałem można się odwołać ? Tylko sam iterator ma jakiś problem


@sylwke3100: Nie można się odwołać bo ci to nie działa -.-

Chłopie po prostu powiedz co chcesz zrobić.