int main (int argc, string& argv[]) ??

This is a discussion on int main (int argc, string& argv[]) ?? within the C++ Programming forums, part of the General Programming Boards category; Originally Posted by laserlight I couldnt find it in Stroustrup's FAQs either. Still, I suppose one could define an alternative ...

  1. #16
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    Quote Originally Posted by laserlight
    I couldnt find it in Stroustrup's FAQs either.

    Still, I suppose one could define an alternative main function that uses a std::string std::vector and which is called by the real main() function that takes null-terminated multibyte strings for argv.
    <offtopic>
    Is that a pic of you in your avatar?
    </offtopic>
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  2. #17
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    23,628
    Quote Originally Posted by ahluka
    <offtopic>
    Is that a pic of you in your avatar?
    </offtopic>
    No, why?
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #18
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    Just curious is all. Wanted to know if there was another female programmer amongst us which I think is awesome.
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 48
    Last Post: 09-26-2008, 03:45 AM
  2. Drawing Program
    By Max_Payne in forum C++ Programming
    Replies: 21
    Last Post: 12-21-2007, 04:34 PM
  3. I need help with variables, please
    By JOCAAN in forum C++ Programming
    Replies: 39
    Last Post: 12-08-2007, 03:16 PM
  4. Replies: 3
    Last Post: 05-13-2007, 08:55 AM
  5. Working with random like dice
    By SebastionV3 in forum C++ Programming
    Replies: 10
    Last Post: 05-26-2006, 09:16 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21