Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.0k views
in Technique[技术] by (71.8m points)

stl - std::vector object is not recognized by my IDE

I define a very simple vector: std::vector v; Then when I want to add an element to this vector I cannot reach to member functions of this vector: v.push_back(1); This code gives error "unknown type name v". I use QT Creator

my code:

#include <iostream>

#include <vector>

std::vector<int> v;

v  //when I write this "unknown type name v" error comes out.

int main()
{
    
}
question from:https://stackoverflow.com/questions/65859484/stdvector-object-is-not-recognized-by-my-ide

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...