hey u can do following 
instread of "./FirstProg <Arg1> " use string with u can create be
appending argument to /FirstProg and pass this string to system
command





On Tue, 30 Nov 2004 15:33:25 -0800 (PST), com bio
<[EMAIL PROTECTED]> wrote:
>  
>  Hello,
>    Please look at the following C++ program.
>  
>  #include<cstdio>
>  #include<cstdlib>
>  int main(void)
>  {
>       int a,b;
>       for ( a=0;a<10;a++)
>       {
>           system("./FirstProg <Arg1> ");
>           //Arg1 should be a
>       }
>  }
>  
>  now the first argument <Arg1> to the program FirstProg
>  is dynamic and will change.so how do i call the system
>  command with a dynamic argument.
>  
>  how do i do this?
>  thanks and regards
>  Deepan Chakravarthy N
>  
>  =====
>  link to deepan's home page:
> http://www.geocities.com/combiofriends/deepan.html
>  
>  -------------------------------------------
>  center for biotechnology
>  anna university
>  chennai-25
>  india
>  
>  __________________________________________________
>  Do You Yahoo!?
>  Tired of spam?  Yahoo! Mail has the best spam protection around 
>  http://mail.yahoo.com 
>  
>  
>  
>  
> 
>  To unsubscribe : [EMAIL PROTECTED]
>  
>  
> 
>  
>  
>  Yahoo! Groups Sponsor 
>  
>  ADVERTISEMENT
>  
>  
>  ________________________________
>  Yahoo! Groups Links
>  
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/Programmers-Town/
>   
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>   
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/EbFolB/TM
--------------------------------------------------------------------~-> 

To unsubscribe : [EMAIL PROTECTED]

 
Yahoo! Groups Links

<*> To reply to this message, go to:
    
http://groups.yahoo.com/group/Programmers-Town/post?act=reply&messageNum=4120
    Please do not reply to this message via email. More information here:
    http://help.yahoo.com/help/us/groups/messages/messages-23.html

<*> To visit your group on the web, go to:  
    http://groups.yahoo.com/group/Programmers-Town/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to