cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
base operand of '->' has non-pointer typ
base operand of '->' has non-pointer type
Dec 21, 2015 at 8:11am UTC
xenoviaquarta
(90)
1
2
QVector<Test*> test2; test2->test;
Why do i keep getting this error? TIA
Last edited on
Dec 21, 2015 at 9:05am UTC
Dec 21, 2015 at 8:58am UTC
TarikNeaj
(2580)
Im guessing it's because, test2 is a vector, and you're trying to use the vector as a pointer. Test 2 contains pointers, and you can access those pointers like this test2[0], test2[1] etc.
Dec 21, 2015 at 9:05am UTC
xenoviaquarta
(90)
thanks :) just figured it out
Topic archived. No new replies allowed.