Code:
#include<iostream> #include<fstream> using namespace std; int main() { ifstream stream1("Standrews83.txt"); char a[139]; if(!stream1) { cout << "While opening a file an error is encountered" << endl; } else { cout << "File
#include<iostream> #include<fstream> using namespace std; int main() { ifstream stream1("Standrews83.txt"); char a[139]; if(!stream1) { cout << "While opening a file an error is encountered" << endl; } else { cout << "File
printf("total is 10"); } total=0; }
//total up the array //total + = total + a[i] total += a[i]
Leave a comment: