Good Night
I'm a beginner in programing for numerical methods (CFD) I'm trying to export a bunch of data to notepad. The simplification of the problem would be an for loop that writes the numbers to a notepad archive, not to the prompt. How can I do it ?
1 2 3 4 5 6 7 8 9 10 11 12 13
#include <iostream>
usingnamespace std;
int main ()
{
//the for loop
for( int a = 10; a < 20; a = a + 1 )
{
cout << "value of a: " << a << endl; // I want cout data in a notepad
}
return 0;
}