#include "stdafx.h"
#include <string.h>
using namespace std;
typedef double(*WSKF)(double, double);
typedef double(*wsktab)[10];
typedef void(*tabwsk[])(int, double[]);
struct TPracownik{
int Nr;
char Imie[50];
char Nazwisko[50];
};
void ModifyPracownik(TPracownik * p, char imie[], char nazwisko[], int nr) {
p->Nr = nr;
strcpy_s(p->Imie, imie);
strcpy_s(p->Nazwisko, nazwisko);
}
double genF(int n, double b[], double a[], double x[], double y[], double (*f)(double, double)) {
for (int i = 0; i < n; i++)
{
double sum = 0;
for (int j = i; j < n; j++)
{
sum += b[j] * f(x[]i, y[i]);
}
a[i] = sum / n;
}
}
double ** GenF2(int n, double x[], double a, double h, double(*f[])(double)) {
double **U = new double* [n];// zabij mnie!!!
for (int i = 0; i < n; i++) {
U[i] = new double[n];
}for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++){
double sum = 0;
for (int k = 0; k < n; k++){
sum += f[i](x[j] + a*h);
}U[i][j] = sum;
}
}return U;
}
void zamien(char tab[]) {
char tmp;
while (*tab != NULL) {
tmp = *tab;
*tab = *(tab + 1);
*(tab + 1) = tmp;
tab += 2;
}
}
int main() {
TPracownik *p = new TPracownik;
ModifyPracownik(p, 1, "Jan", "Nowak");
return 0;
}
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}