Search:

Type: Posts; User: heitohell

Search: Search took 0.00 seconds.

  1. Replies
    15
    Views
    2,352

    I just open the c++ and then in the file tab, i...

    I just open the c++ and then in the file tab, i select the source file in the new
    or in other word just use ctrl + n(hotkey) and after this i paste this code. Does this code still usable? I know the...
  2. Replies
    15
    Views
    2,352

    Ok, now i saw a code like this: #include...

    Ok, now i saw a code like this:


    #include <stdio.h>
    #include <iostream>

    using namespace std;


    int main ()
  3. Replies
    15
    Views
    2,352

    Do you mean this code: f you want to open...

    Do you mean this code:


    f you want to open the file and do something with it in your c++ program, using ofstream and ifstream as the code you've provided.


    or this:


    a_file.close();
  4. Replies
    15
    Views
    2,352

    Yea, thanks w.chen. But if i want to open the...

    Yea, thanks w.chen. But if i want to open the output file when i type open, does that possible?
  5. Replies
    15
    Views
    2,352

    cin>> op ; if ( op == "open" ) { cout

    cin>> op ;
    if ( op == "open" ) {
    cout<<"this is to test weather the code right ..." ;
    }

    the error didn't come out again but the message didn't show up even i type open.
  6. Replies
    15
    Views
    2,352

    I also tried that, but i don't know to check ...

    I also tried that, but i don't know to check weather the user type open to open the file. I tried this:


    char op[6] ;//i put this after using namespace std;...
  7. Replies
    15
    Views
    2,352

    How to open file?

    Hello, I am a beginner. I read this page already, but just one things that I don't understand. How to open the example.txt when i type open? And the code below is the whole code.



    #include...
Results 1 to 7 of 7