#include <iostream>
#include <string>
using namespace std;
int main()
{
string str = "String";
int strSize = str.size();
cout << "String Size is " << strSize << endl;
return 0;
}
Here is the code. It is compiled and works properly (it outputs the size of the string). The problem is that after the str (str is the string variable/object) when I write "." (the dot) intellisense/SmartSence is no't showing the possible methods. Btw thx for the attention. guys.
A quick but ugly fix to this problem is to have an extra namespace in your code ie.
using namespace std;
using namespace std::__cxx11;