Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Quick Question - C++ Command Line Arguments

Name: sam 2013-05-05 1:08

Hey guys, I am making a parser that takes command line arguments. I understand how to do it, but the program takes in the arguments in the main method. Why would my header outline have a method argslist? What do you think the professor wants me to do with this method?

Name: also sam 2013-05-05 1:16

I'm noob and I don't belong here but I'm also learning c++

are methods just functions inside classes?


I'm barely getting done with linked lists so that might indicate my level of comprehension.

Do you have the assignment spec documentation?

Name: Anonymous 2013-05-05 1:25

Name: Anonymous 2013-05-05 2:14

lol yeah this shits kind of over my head.

Name: Anonymous 2013-05-05 2:17

The niggers are after me

Name: also sam 2013-05-05 2:21

If you are talking about class lexer public: the ampersands (&) tell me you are passing by reference which means you are taking the information from main (or the part of the code that calls the method) which is to be modified. looks like its both the input and output filestream.

What are the arguments to be used? single letter switches? or are the arguments the input and output file names.

I'm too lazy to read all of the code.

Don't change these.
Name: Email:
Entire Thread Thread List