I don't understand what do you mean "open the output file", if you mean open it using some sort of texteditor, you can call system("command") to do it. e.g. system("notepad.exe example.txt")
if...
Type: Posts; User: w.chen
I don't understand what do you mean "open the output file", if you mean open it using some sort of texteditor, you can call system("command") to do it. e.g. system("notepad.exe example.txt")
if...
use strcmp to compare string, don't use ==
#include <iostream>
#include <fstream>
using namespace std;
int main(int argc, char *argv[])