+ 2

Module 8 quiz

I need help with this final question Rearrange to declare a file object ''fileObj'' and open a file named ''myfile.txt'' by calling the open() function on the ''fileObj'' object. } #include <fstream> int main () { fileobj.open("myfile.text") ofstream file.obj

30th Sep 2018, 2:59 AM
Jihad Wahdan
Jihad Wahdan - avatar
10 Réponses
+ 4
Answer- #include<fstream> Into main(){ Of stream fileObj; fileObj.open("my file.txt"); }
3rd May 2020, 6:05 AM
Ninad Vijay Jadhav
Ninad Vijay Jadhav - avatar
0
1) You should close the block, ie the brace after int main() should be matched by one at the end. It seems that, instead, you left it at the start of the program, before the include 2) remember to declare variables before their use
30th Sep 2018, 5:59 AM
fra
fra - avatar
0
Thank you that worked
30th Sep 2018, 10:15 PM
Jihad Wahdan
Jihad Wahdan - avatar
0
Answer- #include<fstream> Int main(){ ofstream fileObj; fileObj.open("my file.txt"); }
22nd May 2020, 4:28 AM
LANKA ATRI DATTA RAVI TEZ
LANKA ATRI DATTA RAVI TEZ - avatar
0
Fill in the blanks to rotate the hue by 80 degrees give me answer guys help me
26th May 2020, 5:48 PM
novaking
novaking - avatar
0
Fill in the blanks to rotate the hue by 80 degrees. help filtered { filter: (80 ); }
15th Dec 2020, 10:11 AM
Saranguaaa
0
How about the last quetions
28th Mar 2021, 1:28 PM
Xie Chan U
Xie Chan U - avatar
0
.filtered { filter: hue-rotate (80 deg); }
31st Mar 2021, 3:12 PM
Mahnoor Shahzad
Mahnoor Shahzad - avatar
27th Nov 2023, 1:00 PM
Mousam Ranjan Sahu
Mousam Ranjan Sahu - avatar
0
Plz Python developer module 8 ans send kardo na
27th Nov 2023, 1:01 PM
Mousam Ranjan Sahu
Mousam Ranjan Sahu - avatar