# 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 ![Capture.JPG](https://res.cloudinary.com/hpiynhbhq/image/upload/v1516034303/kygcckq3mxcrmtmbhsxr.jpg) The file sabi11 is created by the program itself and the instructions are written on the file. ![Capture1.JPG](https://res.cloudinary.com/hpiynhbhq/image/upload/v1516034448/k9y88goq5b5pngyron8h.jpg) **I hope you guys enjoyed it stay tuned**
post_id | 25,863,721 |
---|---|
author | learnandgrow |
permlink | writing-the-file-by-c-programming |
category | programming |
json_metadata | "{"tags": ["programming", "busy", "cpp", "codeblocks"], "format": "markdown", "image": ["https://res.cloudinary.com/hpiynhbhq/image/upload/v1516034303/kygcckq3mxcrmtmbhsxr.jpg"], "community": "busy", "app": "busy/2.2.0"}" |
created | 2018-01-15 16:41:48 |
last_update | 2018-01-15 16:41:48 |
depth | 0 |
children | 7 |
net_rshares | 19,325,092,739,293 |
last_payout | 2018-01-22 16:41:48 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 138.012 SBD |
curator_payout_value | 43.949 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 887 |
author_reputation | 14,528,548,322,874 |
root_title | "Writing the file by C++ programming" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
calinconst | 0 | 596,068,672 | 99.75% | ||
blockchainttmft | 0 | 65,134,372,416 | 92% | ||
massive-pop | 0 | 3,661,754,040 | 100% | ||
minnowbooster | 0 | 12,742,337,788,331 | 57% | ||
jamescash | 0 | 402,705,929 | 100% | ||
kdee916 | 0 | 7,698,656,898 | 100% | ||
learnandgrow | 0 | 6,398,146,580 | 100% | ||
peaceandlove | 0 | 6,482,804,152,671 | 43% | ||
hanitasteemer | 0 | 15,166,802,100 | 100% | ||
smarthamster72 | 0 | 102,557,160 | 1% | ||
michaelizer | 0 | 445,018,179 | 100% | ||
observer1337 | 0 | 344,716,317 | 100% | ||
woland76 | 0 | 0 | 100% |
igotknowledge
post_id | 25,863,969 |
---|---|
author | hanitasteemer |
permlink | re-learnandgrow-writing-the-file-by-c-programming-20180115t164305509z |
category | programming |
json_metadata | "{"app": "steemit/0.1", "tags": ["programming"]}" |
created | 2018-01-15 16:43:03 |
last_update | 2018-01-15 16:43:03 |
depth | 1 |
children | 1 |
net_rshares | 14,935,052,375 |
last_payout | 2018-01-22 16:43:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.101 SBD |
curator_payout_value | 0.034 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 13 |
author_reputation | 8,107,536,058,544 |
root_title | "Writing the file by C++ programming" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
hanitasteemer | 0 | 14,935,052,375 | 100% |
thank you I am coming to you too!
post_id | 25,864,211 |
---|---|
author | learnandgrow |
permlink | re-hanitasteemer-re-learnandgrow-writing-the-file-by-c-programming-20180115t164427549z |
category | programming |
json_metadata | "{"app": "steemit/0.1", "tags": ["programming"]}" |
created | 2018-01-15 16:44:30 |
last_update | 2018-01-15 16:44:30 |
depth | 2 |
children | 0 |
net_rshares | 0 |
last_payout | 2018-01-22 16:44:30 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 33 |
author_reputation | 14,528,548,322,874 |
root_title | "Writing the file by C++ programming" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
Nic
post_id | 25,866,917 |
---|---|
author | missrdx |
permlink | re-learnandgrow-writing-the-file-by-c-programming-20180115t165944680z |
category | programming |
json_metadata | "{"app": "steemit/0.1", "tags": ["programming"]}" |
created | 2018-01-15 16:59:54 |
last_update | 2018-01-15 16:59:54 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2018-01-22 16:59:54 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 3 |
author_reputation | 78,222,795,638 |
root_title | "Writing the file by C++ programming" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
Hope one day to master this language
post_id | 26,049,537 |
---|---|
author | michaelizer |
permlink | re-learnandgrow-writing-the-file-by-c-programming-20180116t145720881z |
category | programming |
json_metadata | "{"app": "steemit/0.1", "tags": ["programming"]}" |
created | 2018-01-16 14:59:30 |
last_update | 2018-01-16 14:59:30 |
depth | 1 |
children | 1 |
net_rshares | 0 |
last_payout | 2018-01-23 14:59:30 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 36 |
author_reputation | 15,058,363,542,798 |
root_title | "Writing the file by C++ programming" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
good luck
post_id | 26,158,098 |
---|---|
author | learnandgrow |
permlink | re-michaelizer-re-learnandgrow-writing-the-file-by-c-programming-20180117t035842604z |
category | programming |
json_metadata | "{"app": "steemit/0.1", "tags": ["programming"]}" |
created | 2018-01-17 03:59:00 |
last_update | 2018-01-17 03:59:00 |
depth | 2 |
children | 0 |
net_rshares | 0 |
last_payout | 2018-01-24 03:59:00 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 9 |
author_reputation | 14,528,548,322,874 |
root_title | "Writing the file by C++ programming" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
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?
post_id | 26,077,243 |
---|---|
author | kdee916 |
permlink | re-learnandgrow-writing-the-file-by-c-programming-20180116t173835742z |
category | programming |
json_metadata | "{"app": "steemit/0.1", "tags": ["programming"]}" |
created | 2018-01-16 17:38:36 |
last_update | 2018-01-16 17:38:36 |
depth | 1 |
children | 1 |
net_rshares | 0 |
last_payout | 2018-01-23 17:38:36 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 143 |
author_reputation | 5,594,712,548,702 |
root_title | "Writing the file by C++ programming" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
I did't learn php ...haha but C++ is great and easy langauge!
post_id | 26,157,842 |
---|---|
author | learnandgrow |
permlink | re-kdee916-re-learnandgrow-writing-the-file-by-c-programming-20180117t035655985z |
category | programming |
json_metadata | "{"app": "steemit/0.1", "tags": ["programming"]}" |
created | 2018-01-17 03:57:00 |
last_update | 2018-01-17 03:57:00 |
depth | 2 |
children | 0 |
net_rshares | 0 |
last_payout | 2018-01-24 03:57:00 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 61 |
author_reputation | 14,528,548,322,874 |
root_title | "Writing the file by C++ programming" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |