Cześć. Mam taki kod:
#include <iostream>
#include <vector>
class Klasa
{
float p;
float q;
float r;
float s;
}
int main()
{
int n = 2500000;
Klasa klasa;
vector<Klasa> tab(n);
int i = 0;
while (i < n)
std::cin >> tab[i].p >> tab[i].q >> tab[i].r >> tab[i].s;
//...
return 0;
}
Chciałbym żeby czas wykonania programu był mniejszy ale nie wiem jak to zrobić. Czy można szybciej wczytać dane z wejścia?