Re: [Dev-C++] Question using "main" as a variable name
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: DC A <ad...@ho...> - 2008-04-07 19:12:31
|
> AD wrote:
> #include
>
> using namespace std;
> int a_func()
> {
> int main = 5;
> return main;
> }
>
> int main()
> {
> int a_var = a_func();
>
> return 0;
> }
There 'll be iostream(header file name) inside angled bracket after #include
directive. My email client doesn't allow angled bracket inside the body of
the message. Sorry about that.
_________________________________________________________________
Find hidden words, unscramble celebrity names, or try the ultimate crossword puzzle with Live Search Games. Play now!
http://g.msn.ca/ca55/212
|