PROGRAM BODY
#include iostream
#include string
#include fstream
//I can't put the horizontal v shaped signs those are called as HTML components here so sorry
using namespace std;
int main (){
ofstream file ("sabi11.txt");
if(!file.is_open()){
cout<<"an error occured"<<endl;
}else {
cout<<"Successfully opened the file"<<endl;
file <<"I am the emperor sabi so don't bow down lols"<<endl;
file <<"dears its a new program a second of series so lets do it shall we?!"<<endl;
file.close();
}
return 0;
}
Working of program
The file sabi11 is created by the program itself and the instructions are written on the file.
I hope you guys enjoyed it stay tuned
igotknowledge
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
thank you I am coming to you too!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Nic
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hope one day to master this language
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
good luck
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
i never really learned c++. :3 my friends only said it was more lenient than java. but looking at your code, I guess it's a bit similar to php?
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
I did't learn php ...haha but C++ is great and easy langauge!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit