string.test

string.test - data.open(name data>> degree>> delta...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include <fstream> #include <cstdlib> int main() { using namespace std; double degree , delta ; char name[35]; ifstream file_name; file_name.open("name.file.txt"); file_name >> name; file_name.close(); ifstream data;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: data.open(name); data >> degree >> delta; data.close(); ofstream outdata; outdata.open(name, ios::app); outdata << " the numbers read are " << degree << " "<< delta << endl; return 0; }...
View Full Document

Ask a homework question - tutors are online