All pastes #392817 Raw Edit

Untitled

public text v1 · immutable
·published 2007-03-13 02:48 UTC
rendered paste body
------ Rebuild All started: Project: 4, Configuration: Debug Win32 ------
Deleting intermediate and output files for project '4', configuration 'Debug|Win32'
Compiling...
4.cpp
d:\homework-\current\cmpsc.101.progmn\programs\hw3.12.07\3.12.07.4\4\4\4.cpp(16) : error C2062: type 'int' unexpected
d:\homework-\current\cmpsc.101.progmn\programs\hw3.12.07\3.12.07.4\4\4\4.cpp(16) : error C2065: 'iterations' : undeclared identifier
d:\homework-\current\cmpsc.101.progmn\programs\hw3.12.07\3.12.07.4\4\4\4.cpp(16) : error C2143: syntax error : missing ';' before ')'
d:\homework-\current\cmpsc.101.progmn\programs\hw3.12.07\3.12.07.4\4\4\4.cpp(16) : error C2143: syntax error : missing ';' before ')'
d:\homework-\current\cmpsc.101.progmn\programs\hw3.12.07\3.12.07.4\4\4\4.cpp(19) : error C3861: 'setprecision': identifier not found
Build log was saved at "file://d:\HOMEWORK-\current\cmpsc.101.progmn\programs\hw3.12.07\3.12.07.4\4\4\Debug\BuildLog.htm"
4 - 5 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

// code

#include <iostream>
#include <fstream>
#include <cmath>
using namespace std;

void Example4();

int main(void)
{
    Example4();
    return 0;
}
void Example4()
{
    ofstream fout("sine.txt");
    for(int i = 0, int iteratons = (int) Iterations; i < iterations; i++);
{
    double x = (0.01 * i);
      fout << setprecision(2) << x << "  ->   " << sin(x) << endl;
}
    fout.close();
}