473,399 Members | 2,278 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

cpmmand line arguments

hello

tell me how to compile as well as run command line arguments.Also let
me know how to open a particular text file using command line asgument

say for example
if there are three text file pt1,pt2,pt3 and if i want to open pt1
please let me know as soon as possible
Feb 24 '08 #1
2 1164
ne**********@yahoo.co.in said:
hello

tell me how to compile as well as run command line arguments.Also let
me know how to open a particular text file using command line asgument

say for example
if there are three text file pt1,pt2,pt3 and if i want to open pt1
please let me know as soon as possible
This information is readily available from any good C tutorial book or
reference book. See, for example, "The C Programming Language", 2nd
edition, by Kernighan and Ritchie, or "C How to Program" (any edition), by
Deitel and Deitel, or "C: A Reference Manual" (any edition), by Harbison
and Steele. Look up "command-line arguments" in the index.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Feb 24 '08 #2
In article <Gv******************************@bt.com>,
Richard Heathfield <rj*@see.sig.invalidwrote:
See, for example, "The C Programming Language", 2nd
edition, by Kernighan and Ritchie, or "C How to Program" (any edition), by
Deitel and Deitel, or "C: A Reference Manual" (any edition), by Harbison
and Steele.
Without having a copy to check, I'm pretty sure the first edition of
K&R will also answer the OP's question.
(Though there are of course other Very Good Reasons to prefer the
second.)
dave

--
Dave Vandervies dj3vande at eskimo dot com

Nothing is perfect. Not even Windows sucks perfectly.
-- Jay Maynard in the Scary Devil Monastery
Feb 24 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: amirmira | last post by:
I would like to set command line arguments to a service at install time. I need to do this because I need to get information from different registry locations depending on my command line argument....
4
by: Roland | last post by:
Hi, I am developing a C++ project and want to pass some command line arguments in VS .NET 2003. I am in debug mode, the configuration is set to Debug and I entered my argument list in Project ->...
40
by: raphfrk | last post by:
I have a program which reads in 3 filenames from the command line prog filename1 filename2 filename3 However, it doesn't work when one of the filenames has spaces in it (due to a directory...
7
by: Jwe | last post by:
Hi, I've written a program which has both a command line interface and Windows form interface, however it isn't quite working correctly. When run from command line with no arguments it should...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.