Hi all,
To say I'm a newbie would be an understatement, so I apologize for the dumb question(s) and comments.
Anyhoo,
I'm a soon-to-be-second-year computer science student. We study a lot of C. When we began, we never used anything from the command line -- my "main" up to this point has always been:
Yes, I know, pretty lame...
Also, until a couple of weeks ago, I was a Windows user (I switched to Ubuntu two weeks ago), so I did all of my assignments using the Visual Studio C++ Express IDE. I really liked it -- I know that it's kind of lame to enjoy the fancy debugger, but jeez, Visual Studio can do stuff like show you a dynamic representation of whatever is in your array (in real time, as you're stepping through it), or a representation of what's in your struct in a linked list. Easy-to-manipulate break points. Watches that are all neat and tidy in their own window, changing in real time. Great stuff!
What's changed about my coding environment is that next semester, we have to start parsing and implementing arguments from the command line, so now my main is (as it should be):
Code:
int main(int argc, char *argv[]){}
Parsing command line arguments should probably have been, like, lesson #2, but it wasn't...
Here is my problem: in the IDEs that I like, you always run your programs as console applications. You compile the program by hitting a button that says "compile", and you run by hitting a button that says "run". As far as I can tell, there isn't anything -- in Visual Studio C++ or Code Blocks, at least -- that allows the programmer to compile
with command line arguments (probably because you're not on the command line).
I know that the answer is something like "Learn vim and gdb and get over it", but geez, it seems that there would be
some IDE that could be used to parse command line arguments.
So: is there such a thing?
I have been learning vim and gdb -- out of necessity -- but I would switch back to an IDE with the fancy debugging stuff if I could find one that allowed me to parse command line arguments as well.
And look, I know that gdb can do all of those aforementioned fancy debugging stuff, but it's a hassle -- having to line up the window with the code next to the gdb debugger, and -- this is really the main part -- I really like having color-coordinated code. Vim has a fine color coordination scheme, but gdb does not. I tried gdb -tui, but it doesn't seem to play well with user input (and, of course, it isn't color coordinated either).
Any thoughts/suggestions/constructive/or/destructive criticisms?