No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
[CODE]#include <iostream> #include <fstream> #include <string> #include <sstream> using namespace std; int main(){ fstream First("firstt.txt"); fstream File("file.txt"); string firsttime; string blah1 = "enable"; string blah2 = "disable"; getline(First, firsttime); if(firsttime!="not"){ First << "not"; cout << "first time settings (to be changed at file.txt)" << endl << "allow every one enter? … |
|
hi im trying to make a "settings" that they are on c++ and saving on text documents here is the code [CODE]#include <iostream> #include <fstream> #include <string> #include <sstream> using namespace std; int main(){ fstream first("firstt.txt");; fstream File("file.txt"); string firsttime; string blah1 = "enable"; string blah2 = "disable"; getline(first, firsttime); … |