Witam
Musze napisać interpolacje Larange funkcji która pobiera wpółczynniki a,b,c,d,e,f. Przyznam że jestem zielony z programowania,lecz napisąłem coś takiego
#include <iostream>
#include <cstdlib>
#include <cmath>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main
(float a, float b,float c,float d, float e, float f)
{
cout <<"podaj a" << endl;
cin >> a;
cout <<"podaj b" << endl;
cin >> b;
cout <<"podaj c" << endl;
cin >> c;
cout <<"podaj d" << endl;
cin >> d;
cout <<"podaj e" << endl;
cin >> e;
cout <<"podaj f" << endl;
cin >> f;
Chciałem aby program po prostu czytał na początku te współczynniki, dopiero potem bedę zajmował się przekształcaniem funkcji. I tu moje pytanie czy muszę napisać cały program i dopiero wtedy program mi się odpali, czy możliwe że na początku już zrobiłem błąd ? Jeśli trzeba wstawię błędy. Program pisze w DEVie
dodanie znacznika <code class="cpp"> - furious programming