LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-03-2005, 07:24 AM   #31
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872

There are declared (I would call implicitly declared, but I don't know if it is the proper term)
Code:
int FindArea(int l, int w)
{
     return l * w;//These variables were  declared, look at the function parameters
}
Another example :
Code:
int FindArea(int man, int woman)
{
     return man * woman;
}

Last edited by keefaz; 08-03-2005 at 07:26 AM.
 
Old 08-03-2005, 09:37 AM   #32
InvisibleSniper
Member
 
Registered: Jul 2005
Location: Australia
Distribution: Debian
Posts: 113

Original Poster
Rep: Reputation: 15
Thanks for that, keefaz and Nylex. You've all been a big help. I got a question on console ouput, this problem really thrustrates me, as a lot of the beginner's programs I try to compile never show you output to the console. It just flashes by and compiles so quickly that you can not see a thing.

I know a couple of functions that stop this, but for some reason they only work sometimes. The functions are:

system("PAUSE")

cin.get();

cin.ignore();

cin.getline(str_name, buffer)

All I would like to know now is how do I use these, and where do I use them; because sometimes they don't work.

Thanks For You Help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic install for child users - advice pls davidcthursby Linux - General 6 07-02-2004 06:02 PM
A main can be changed by a function local without passing anything to the function? ananthbv Programming 10 05-04-2004 01:31 PM
what is the function library of the basic graphics library in rethat9.0? zerwolve Red Hat 0 04-29-2004 09:18 PM
Perl exec function in linux (and system-function) nazula Programming 1 04-19-2004 12:21 PM
pls pls pls help me ! i'm tired with httpd config on fedora apache 2.0.48 AngelOfTheDamn Fedora 0 01-24-2004 05:12 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration