Report
Question
void fileRead() { student s22; fstream out; out.open(“ABC.txt”,ios::in); while(!out.eof()) { out.read((char *)&s22,sizeof(s22)); cout<<s22.roll_no<<“\t”<<s22.name<<“\t\t”<<s22.marks<<“\t”<<endl; } } When I try to read object from file using read function in C++ then it return last record 2 times. Output like this: 11 Ram 70...

Please briefly explain why you feel this question should be reported .

Report
Cancel
0
C++ 7 days 0 Answer 24 views

Report
Question
$array=01*01*22*22*22*99*99*99*66*66*66*45*45*45*45*57*57*57*57*57*57*57*57*77*34*34*34*34*34*34*34*34*34*34*34*34* result jumlah 1 = 77* jumlah 2 = 01* jumlah 3 = 66*22*99* jumlah 4 = 45* jumlah 5 = jumlah 6 = jumlah 7 = jumlah 8 = 57* jumlah 9 = jumlah 10 = jumlah 11 = jumlah 12 ...

Please briefly explain why you feel this question should be reported .

Report
Cancel
0
C++ 2 weeks 0 Answer 37 views

Report
Question
int a; scanf(“%d”,&a); if((a%2)==0){ printf(“this is even number”) } return 0; } what is if((a%2)==0)?   ...

Please briefly explain why you feel this question should be reported .

Report
Cancel
in progress 0
C++ 3 months 1 Answer 111 views

Report
Question
I am trying to convert a decimal number input from user to its binary value using a function. I saw the solution given on w3resource.com and it all went good except one point i didnt understand. Below is the code : CODE:...

Please briefly explain why you feel this question should be reported .

Report
Cancel
in progress 0
C++ 5 months 1 Answer 1186 views

Report
Question
Write a program that has an array that contain values as below. Without changing the data position, print out the data according to the values from highest to lowest. 2.231 3.421 3.738 1.657 2.116 3.475 2.129 2.544 3.118 1.854 ...

Please briefly explain why you feel this question should be reported .

Report
Cancel
in progress 0
C++ 6 months 1 Answer 550 views