Search:

Type: Posts; User: djddj

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    1,449

    Sorry: was beg, not big. The positioning don't...

    Sorry: was beg, not big.
    The positioning don't work simply with seekg(...).
    I will try to retrive with tellg...

    Thank you very much for the reply.
    Best regards!
  2. Replies
    7
    Views
    1,449

    i did like this and didn't works: ...

    i did like this and didn't works:


    // ...
    char s[200];

    ifstream fin;
    fin.open("C:\\in.txt");
  3. Replies
    7
    Views
    1,449

    Thank you for the reply but this is not my point,...

    Thank you for the reply but this is not my point, because i have thousands of lines, i don't want to store all the lines in memory. I wonder how can i close the stream or the file and open it again...
  4. Replies
    7
    Views
    1,449

    Reading text files

    Pls, help me: how can i do this:

    I read a text file line-by-line using ifstream.getline();
    How can i reposition the pointer so after i read for example 3 lines to start reading from the first...
  5. Thread: Pointers

    by djddj
    Replies
    4
    Views
    901

    Thank you for reply! That's right with the error...

    Thank you for reply!
    That's right with the error message.

    Ok, pCls1 points to a valid object that has its own memory. Why can not use delete for deleting pCls1? I know, if i using 'new' it works,...
  6. Thread: Pointers

    by djddj
    Replies
    4
    Views
    901

    Pointers

    What is hapening here:
    I can declare a pointer to cls1 and I can access (set) the cls1 object without 'new' operator?! Why?


    MyClass cls1;
    MyClass* pCls1 = &cls1;

    pCls1->set(int i);...
Results 1 to 6 of 6