Solved

Simple syntax one..here!

Posted on 1998-11-02
2
174 Views
Last Modified: 2011-09-20
I have left my books at home and have forgotten how the syntax looks for passing a program parameters from the command line.
E.G. int main(argc something, argv something[])
Can you help?
0
Comment
Question by:martincollis
2 Comments
 

Accepted Solution

by:
Ant031898 earned 30 total points
ID: 1254026
The syntax is:
int main(int argc,char* argv[]) {
}
hope that helps
Cheers
Ant
0
 

Author Comment

by:martincollis
ID: 1254027
I know its a simple problem, but thanks all the same.
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question