I want to write code for calculating some values and put these values in a 2-dimensional array. I have written very simple form of this problem.
This code gives me no output.
I want to have one for example m by n array or matrix with elements which are calculated by specific function.
#include "stdafx.h"
#include "iostream"
#include "cmath"
using namespace std;
double x;
int i,j;
double A[10][10];
double M;
double function (double A,double x)
{
for (i = 0; i = 9; ++i)
for (j = 0; j = 9; ++j)
M = 10 + x + A;
return M;
}
int _tmain(int argc, _TCHAR* argv[])
{
double y;
cin >> x;
y = function(A[10][10], x);
cout << y;
return 0;
}