Hello there,
I am a newbie to c++ programming. Lately I am facing an error while doing examples in Bjarne Stroustrup "Programming Principles and Practice Second edition". Now I am sticking here in Vector Examples. Please help me with me . I respect you seniors!
Here my code is
#include "iostream"
#include "algorithm"
#include "vector"
using namespace std;
int main()
{
vector<string>words;
for(string temp; cin>>temp;)
words.push_back(temp);
cout<<"Number of words: "<<words.size()<<'\n';