Quote:
Originally Posted by xpi0t0s View Post
Code:
ofstream a_file ( "example.txt" );
Try specifying the location.
I edit it :
Code:
cin.ignore();
     while (true) {
        cin >> op;
        if(strcmp(op, "open")== 0) fopen("g:\ccc\example.txt","r"); break;
        
        else cout << endl << "Hint: open" << endl << "type again:" ;
    }
2 error came out:
1.36 G:\ccc\dllmain.cpp expected primary-expression before "else"
2.36 G:\ccc\dllmain.cpp expected `;' before "else"

I don't get its points, where should i put the primary bracket?