New at c++
Lopezio
geral@mariolopes.com
Tue Jun 10 19:35:00 GMT 2008
Hi Eljay
Sorry about the offtopic and thank you for your help
Solved my problem.
John Love-Jensen wrote:
>
> Hi Lopezio,
>
>> I program in Pascal with parameters and my programs run like
>> nameofprogram.exe param1 param2
>> How can i do the same in c++?
>
> Your question is off-topic for this forum. This is a GCC specific help
> forum, and your question is a general C++ question. I'm not pointing this
> out to chastise you
> . I'm pointing it out because there are more suitable
> forums for general C++ questions, with which you may be able to get
> answers
> to your general C++ questions faster and/or more accurately.
>
> That being said...
>
> #include <iostream>
> int main(int argc, char** argv)
> {
> for(int i = 1; i < argc; ++i)
> {
> std::cout << "Parameter " << i << ": "
> << argv[i] << std::endl;
> }
> }
>
> HTH,
> --Eljay
>
>
>
--
View this message in context: http://www.nabble.com/New-at-c%2B%2B-tp17761818p17762989.html
Sent from the gcc - Help mailing list archive at Nabble.com.
More information about the Gcc-help
mailing list