Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.
c++ command line editing
Name: jlarson Date: September 3, 2003 at 20:40:58 Pacific OS: gnu/linux CPU/Ram: 850mhz 256mb
Comment:
I've just recently started learning c++. I'm currently working on a simple calculator which allows the user to input into a char array. I was wondering if anyone could point me in the right direction to figure out how to add command line editing functionality. What library and/or what function could I use? Thanks in advance.
Of course my reference to the '& l t' is a less than character... not sure what happened on that. At any rate, that code will give you access to command-line arguments.
Infinite Recursion
0
Response Number 3
Name: jlarson Date: September 4, 2003 at 07:00:38 Pacific
Reply:
I think you misunderstand. Perhaps I did not explain it properly. I'm not wanting to process command line arguments. I want to allow a user to edit their input before pressing enter. They should be able to use the arrow keys to go back and change parts of their inputs instead of using backspace and deleting part of the input. Just like command line editing in bash.
Summary: When you want to retreive command line arguments sent to a program in C++, you say int main(int argc, **char argv) { // code here } What I am wondering is why is there a variable that holds the number...
Summary: Hello everyone! :D OK, a while ago I asked how to use the Terminal font in the Visual Studio IDE, but nobody really answered my question... :S Now, I need the same thing but in command line. I want th...
Summary: Hi. I just downloaded the free borland c++ 5.5 command line tools. I've set up my configuration files as instructed on: http://community.borland.com/article/0,1410,21205,00.html I'm trying to compil...