برنامه نویسی
#include
#include
#include
#include

using namespace std;
double f(double a,double b);
int main(int)
{
    int n,i=1,j=1;
    cout<<"enter N for level: ";
    cin>>n;
    double x[n][n],y[n],w[n][n],s=0;
    for(i=0;i    {
                     cout<<"***********************"<<" "<                     for(j=0;j                    {
                     cout<<"enter x:";
                     cin>>x[i][j];
                     cout<<"x"<                     cout<<"enter w:";
                     cin>>w[i][j];
                     cout<<"w"<                    }
                               
                    for(int h=0;h                    for(int k=0;k                    s=s+(f(x[i][h],x[i][k])*w[i][h]*w[i][k]);
//                   cout<    }
 
    
    cout<<"hello"<<"\n";
    cin>>n;
    return 0;
}
double f(double a,double b)
{
    return a+b;
}

+ نوشته شده در  دوشنبه سوم خرداد ۱۳۸۹ساعت 6:23  توسط ابراری |