News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Autocompletion for structs and STL not working

Started by Pressure, October 15, 2011, 04:36:31 PM

Previous topic - Next topic

Pressure

Hi, I can't seem to get autocompletion to work. I know this has probably been anwered 100000 times but I couldn't find the answer in searches. I'm using CodeBlocks 10.05 for Windows 7.

Thanks for your help.


#include <iostream>
#include <string>
#include <vector>
using namespace std;

typedef struct
{
    int x,y;
} Point;

class PointClass
{
public:
    int _x,_y;
};


int main()
{
string s;
vector<int> v;
Point a;
PointClass b;
v. // nothing happens
s. //nothing happens
a. //nothing happens
b. // works

return 0;
}



Jenna

The codecompletion has improved a lot since the 10.05 release.

If you use a recent nightly build, it should work (at least it works fine on linux with an actual version).
See: Nightly builds forum .

Pressure

Nightly build worked like a charm. Thanks for your help.