Author Topic: code completion  (Read 3207 times)

Offline blueshake

  • Regular
  • ***
  • Posts: 459
code completion
« 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;
}
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?