Kamis, 27 Maret 2014

Ebook Chapter 5 Problem Solving and Program Design in C

  • 5.9 Figure 5.16  Using a Function Parameter
#include <cstdlib>
#include <iostream>

using namespace std;

    void evaluate ( double f(double f_arg), double pt1,double pt2,double pt3){
         cout<<" = "<<pt1<<f(pt1);
         cout<<" = "<<pt2<<f(pt2);
         cout<<" = "<<pt3<<f(pt3);
         }
int main(int argc, char *argv[])
{

    system("PAUSE");
    return EXIT_SUCCESS;
}

0 komentar:

Posting Komentar

 

Anita © 2010

Blogger Templates by Splashy Templates