Search the web
Sign In
New User? Sign Up
Programmers-Town
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
C++ Functions   Message List  
Reply | Forward Message #12541 of 12634 |
Re: C++ Functions

1- What are the Functions?
The same definition as mathematic's functions or calculus functions. They're
code fragments packaged with a name, they can accept input data and at the end
return data.

2- Why we are using the Functions?
Because we can re-use code grouping code in functions and later call it in other
program part.

3- What is the Types of Functions?
Functions are functions there are no function kinds or classifications.

It follows this scheme:

return_value_type FUNCTION_NAME (parameter_type PARAMETER_NAME)
{
....
CONTENT
....
return RETURN_VALUE;
}

In Pascal the functions that don't return values or don't accept parameters are
called procedures but in C/C++ functions are like this.

Go to this web-site if you need a gentle C++ introduction quickly:
http://www.cplusplus.com/doc/tutorial/functions/
In here you will find learn by examples.

Another reference for beginners is the Thinking in C++ from the C++ guru and
motivator Bruce Eckel: http://mindview.net/Books/TICPP/ThinkingInCPP2e.html
You can download these in the same web-site free of charge.

And at last you can get the C programming for dummies it's the best resource for
beginner students with little time.




Thu Jul 2, 2009 6:06 pm

delimitacion...
Offline Offline
Send Email Send Email

Forward
Message #12541 of 12634 |
Expand Messages Author Sort by Date

Hi Can anyone explain C++ functions in simple words.   1- What are the Functions? 2- Why we are using the Functions? 3- What is the Types of Functions? ...
Jawad Saleem
jawadvu
Offline Send Email
Jan 22, 2009
1:56 pm

Hi, Functions are a way to compartmentalize a program. We can code a functionality which can perform a particular operation separate and call it from our main...
sureshkumarct
Offline Send Email
Jan 24, 2009
7:06 pm

Functions are a way to make sub-programs in your main program. These are used to perform specific tasks. The main use of functions is the avoidance of writing...
shashwat rohilla
shashwat.delhi
Offline Send Email
Jan 28, 2009
9:38 am

1st y we need function ?? In practical apllication there are very large praogarms & to handle it with efficieancy we need function u can call it as sub...
archit mehta
tree2rhym
Offline Send Email
Mar 25, 2009
7:22 pm

follow downtown approach with rapid speed model on waterfall. ... From: archit mehta <tree2rhym@...> Subject: Re: (PT) C++ Functions To:...
nehha singla
nehha_singla
Offline Send Email
Mar 28, 2009
6:34 pm

um, I made no sense out of that message. Thanks, Tyler Littlefield Web: tysdomain.com email: tyler@... My programs don't have bugs, they're called...
Tyler Littlefield
tyler@...
Send Email
Mar 25, 2009
9:39 pm

1- What are the Functions? The same definition as mathematic's functions or calculus functions. They're code fragments packaged with a name, they can accept...
delimitaciones45
delimitacion...
Offline Send Email
Jul 7, 2009
9:22 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help