Search Results

Search: Posts Made By: Alabama
2,240
Posted By Alabama
You are right, everything was fine with getopt....
You are right, everything was fine with getopt. The problem was that the binary file that make was outputting was not the one being used when calling it on the command line, but a previous...
2,240
Posted By Alabama
Thank you, just did, but still getting "invalid...
Thank you, just did, but still getting "invalid option --D".
2,240
Posted By Alabama
I am using Mac OS X. Eventually I want to...
I am using Mac OS X.

Eventually I want to add all ABCD cases, but for now I am giving it just -D1 to parse.

There are no such operations, below is all the code starting from main until the...
2,240
Posted By Alabama
Thank you, my bad. I added the ":" after D, but...
Thank you, my bad. I added the ":" after D, but it still displays "invalid option". It should not be a problem with changing argc, right? The next part is this. Not sure if something else is...
2,240
Posted By Alabama
Adding another option to getopt
I am trying to code for the addition of a new argument to the command line, the option D to a code that already has ABC (below). When I use make to compile it, it displays: invalid option --D. I did...
1,861
Posted By Alabama
Indeed, this is what I meant. Fantastic, this...
Indeed, this is what I meant. Fantastic, this worked! Thank you.
1,861
Posted By Alabama
Okay, trying. thank you Input: 7 1 49 0 ...
Okay, trying. thank you
Input:
7 1
49 0
83 0
5 2
42 0

Hopeful output:
7 0
49 0
83 0
5 2
42 0
1,861
Posted By Alabama
Relative column offsets
Ive been trying to slide the second column one line down while keeping the first one in place. For a start, I tried to see if I can go through every line and print the element located on the line...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 12:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy