Code::Blocks

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: blueshake on October 16, 2008, 08:56:40 am

Title: code completion
Post by: blueshake on October 16, 2008, 08:56:40 am
hi,
       I write these codes in cb.I save them when I inclued <fsteam> ,then I type in and .     but code completion don't work .that is class fstream's method can not be on tip. Can anyone can help me to fix the problem.

#include <iostream>
#include <fstream>
using namespace std;

int main()
{
fstream in("readme.txt");
cout<<in.tellg()<<endl;
in.seekg(0,ios::end);
cout<<in.tellg()<<endl;
in<<"you are a real man";
cout<<in.tellg()<<endl;
    cout << "Hello world!" << endl;
    return 0;
}