The Artima Developer Community
Sponsored Link

C# Answers Forum
c++

4 replies on 1 page. Most recent reply: Apr 10, 2003 7:35 AM by mihai

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 4 replies on 1 page
Anke

Posts: 1
Nickname: kean
Registered: Nov, 2002

c++ Posted: Nov 26, 2002 5:06 AM
Reply to this message Reply
Advertisement
*difference between void and dangling pointers
*implementation of 'void' and 'null' pointers


Matt Gerrans

Posts: 1153
Nickname: matt
Registered: Feb, 2002

Re: c++ Posted: Dec 2, 2002 8:02 PM
Reply to this message Reply
Are these statements or questions?

Nimesh

Posts: 7
Nickname: nm
Registered: Oct, 2002

Re: c++ Posted: Dec 11, 2002 8:31 AM
Reply to this message Reply
I'm really new to C/C++. What is argc and argv? Also, does anyone know how to write the code in C/C++ to carry out the same function as UNIX's rm command?

Thanks.
NM

Matt Gerrans

Posts: 1153
Nickname: matt
Registered: Feb, 2002

Re: c++ Posted: Dec 11, 2002 6:07 PM
Reply to this message Reply
This forum is about C#, not C or C++, but:
- argc is an integer parameter to main() in a C or C++ program that indicates the length of argv, which is an array of pointers to strings representing the parsed command line. So, if you run the program "mytest one two", argc is 3, argv[0] is "mytest", argv[1] is "one" and argv[2] is "two". Try compiling and running this little C++ program with command lines of your choice:
#include <iostream.h>
void main( int argc, char * argv[] )
{
   cout << "argc: " << argc << endl;
   for( int i = 0; i < argc; i++ )
      cout << "argv[" << i << "]: " << argv[i] << endl;
}

- There is a standard C library routine called unlink() for deleting files.

mihai

Posts: 5
Nickname: mishooax
Registered: Apr, 2003

Re: c++ Posted: Apr 10, 2003 7:35 AM
Reply to this message Reply
if you want help with c++ try:

www.cpp-home.com

it's an excellent place both for beginners and advanced c++ programmers!

Flat View: This topic has 4 replies on 1 page
Topic: login page Previous Topic   Next Topic Topic: C++ Specialists

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use