#include <cmath> using namespace std; int main() { const int N = 10; const float h = 1.0f/N; float x = 0.0f; // to `do` fortrana bedzie zdaje sie takie: for (int i = 1; i <= N; ++i) { x *= h; cout << sin(x) << " "; cin.get();
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:15: error: ‘cout’ was not declared in this scope prog.cpp:16: error: ‘cin’ was not declared in this scope prog.cpp:16: error: expected `}' at end of input prog.cpp:16: error: expected `}' at end of input
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!