use of function

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2008
Posts: 10
Reputation: M^2 is an unknown quantity at this point 
Solved Threads: 0
M^2 M^2 is offline Offline
Newbie Poster

use of function

 
0
  #1
Dec 1st, 2008
heloo
can anyone plz tell me how use functions like power and setw....
in programmes...
thanku
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 2,841
Reputation: niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute 
Solved Threads: 298
Moderator
Featured Poster
niek_e's Avatar
niek_e niek_e is online now Online
Roasting Maven

Re: use of function

 
0
  #2
Dec 1st, 2008
Originally Posted by M^2 View Post
heloo
can anyone plz tell me how use functions like power and setw....
Probably.
What did you try? With what do you have problems?
Last edited by niek_e; Dec 1st, 2008 at 5:04 am.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 10
Reputation: M^2 is an unknown quantity at this point 
Solved Threads: 0
M^2 M^2 is offline Offline
Newbie Poster

Re: use of function

 
0
  #3
Dec 1st, 2008
well its like this i have writen program that asks user to input even and odd integers and then add the even and odd integers seperatley and divide them by pi=3.14 and it should give the answer upto 3 decimal points...
i dont know how to set the width.....
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 43
Reputation: davids2004 is an unknown quantity at this point 
Solved Threads: 0
davids2004 davids2004 is offline Offline
Light Poster

Re: use of function

 
0
  #4
Dec 1st, 2008
You will need to include this to set width

#include <iomanip>

Then use setw (#)
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC