Register
Remember Me?
Forum
Today's Posts
C and C++ FAQ
Forum Actions
Mark Forums Read
Quick Links
View Forum Leaders
What's New?
Get Started with C or C++
C Tutorial
C++ Tutorial
Get the C++ Book
All Tutorials
Advanced Search
Forum
General Programming Boards
C Programming
How to declare a global variable in Main()
Getting started with C or C++
|
C Tutorial
|
C++ Tutorial
|
C and C++ FAQ
|
Get a compiler
|
Fixes for common problems
Thread:
How to declare a global variable in Main()
Thread Tools
Show Printable Version
Email this Page…
Subscribe to this Thread…
Search Thread
Advanced Search
Display
Switch to Linear Mode
Switch to Hybrid Mode
Threaded Mode
Threaded View
Previous Post
Next Post
06-20-2002
#1
vnrabbit
View Profile
View Forum Posts
Registered User
Join Date
Mar 2002
Posts
54
How to declare a global variable in Main()
Please help! Can someone tells me how to declare a globle variable in Main()? I really appreciate!
Quick Navigation
C Programming
Top
Site Areas
Settings
Private Messages
Subscriptions
Who's Online
Search Forums
Forums Home
Forums
General Programming Boards
C++ Programming
C Programming
C# Programming
Game Programming
Networking/Device Communication
FAQ Board
Programming Book and Product Reviews
Platform Specific Boards
Windows Programming
Linux Programming
Cprogramming.com and AIHorizon.com's Artificial Intelligence Boards
General AI Programming
Community Boards
Article Discussions
Tech Board
General Discussions
A Brief History of Cprogramming.com
Contests Board
Projects and Job Recruitment
«
Previous Thread
|
Next Thread
»
Popular pages
Exactly how to get started with C++ (or C) today
C Tutorial
C++ Tutorial
5 ways you can learn to program faster
The 5 Most Common Problems New Programmers Face
How to set up a compiler
8 Common programming Mistakes
What is C++11?
Creating a game, from start to finish
Recent additions
How to create a shared library on Linux with GCC
- December 30, 2011
Enum classes and nullptr in C++11
- November 27, 2011
Learn about The Hash Table
- November 20, 2011
Rvalue References and Move Semantics in C++11
- November 13, 2011
C and C++ for Java Programmers
- November 5, 2011
A Gentle Introduction to C++ IO Streams
- October 10, 2011
Similar Threads
global variable and prototype
By Lincoln_Poh in forum C++ Programming
Replies:
3
Last Post:
09-21-2008,
03:25 AM
Global Variable Usage -- Failure in assignment
By jake123 in forum C Programming
Replies:
7
Last Post:
02-15-2008,
02:30 PM
Refering to a global variable in a different object file
By Canadian0469 in forum C Programming
Replies:
1
Last Post:
11-11-2007,
08:53 PM
How To Declare and Dynamically Size a Global 2D Array?
By groberts1980 in forum C Programming
Replies:
26
Last Post:
11-15-2006,
09:07 AM
Problam with a global class variable
By WebmasterMattD in forum C++ Programming
Replies:
11
Last Post:
01-21-2003,
04:38 AM