Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct JakasStruktura{
- int a;
- QString b;
- }
- QList<JakasStruktura> listaStruktur;
- for(int i = 0; i<10; ++i)
- {
- JakasStruktura *temp = new JakasStruktura; \\a może zamiast tego zrobić std::shared_ptr<JakasStruktura> ?
- temp->a = i;
- temp->b = "Tekst";
- listaStruktur.append(temp);
- //czy to tu powinno być?
- delete temp;
- }
Advertisement
Add Comment
Please, Sign In to add comment