Monday, May 10, 2021

simple program using file handling (OOP) (90)

#include<iostream>

#include<fstream>

using namespace std;

int main()

{

double area,cir,radius=5.6;

string str;

ofstream out;

out.open("radiuscircle.txt");

out<<"the radius of a circle:"<<radius<<endl;

out.close();

} 

No comments:

Post a Comment