Results 1 to 4 of 4

Urgent Help Needed

This is a discussion on Urgent Help Needed within the C++ forums, part of the Courses category; Plz som1 help me in making a program of inline function in c++...

  1. #1
    iTT Student krazzyfaiq's Avatar
    Join Date
    Sep 2010
    Location
    Pakistan
    Posts
    2

    Urgent Help Needed

    Plz som1 help me in making a program of inline function in c++

  2. #2
    Senior Student Adnan Ahmad Khan's Avatar
    Join Date
    Aug 2010
    Location
    Bannu/Pakisatn
    Age
    27
    Posts
    261

    Re: Urgent Help Needed

    #include<iostream.h>
    // This program will find the volume of cube with given side using inline function
    inline double cube (const double side)
    {
    return side*side*side;
    }
    main()
    {
    double side_length;
    cout<<"Enter length of a side of the cube: ";
    cin>>side_length;
    cout<<"The area of the cube having side length "<<side_length<<" is ";
    cout<<cube(side_length)<<endl;
    return 0;
    }
    // This program is for Turbo C++ 4.5

    Sorry yr aap ko response late mila leken Shayed kisi nai deka nhi tha aapkay post ko

  3. #3
    iTT Student
    Join Date
    May 2011
    Location
    pakistan
    Posts
    54

    Re: Urgent Help Needed

    whats in line

  4. #4
    iTT Student
    Join Date
    Jan 2011
    Location
    chakwal
    Age
    42
    Posts
    29

    Re: Urgent Help Needed

    whats in line

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •