Click here to Skip to main content
15,887,485 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: //lint !e740 Pin
russeller1-Mar-06 10:53
russeller1-Mar-06 10:53 
QuestionSet OpenGL for Visual Studio 2005 Standard Pin
Yonggoo1-Mar-06 9:03
Yonggoo1-Mar-06 9:03 
Questionequivalent of VB's Debug.Print in vc 6 Pin
ns1-Mar-06 8:52
ns1-Mar-06 8:52 
AnswerRe: equivalent of VB's Debug.Print in vc 6 Pin
David Crow1-Mar-06 9:26
David Crow1-Mar-06 9:26 
GeneralRe: equivalent of VB's Debug.Print in vc 6 Pin
ns1-Mar-06 10:35
ns1-Mar-06 10:35 
AnswerRe: equivalent of VB's Debug.Print in vc 6 Pin
Wes Aday1-Mar-06 9:29
professionalWes Aday1-Mar-06 9:29 
QuestionParsing Pin
cuteee1-Mar-06 8:40
cuteee1-Mar-06 8:40 
AnswerRe: Parsing Pin
David Crow1-Mar-06 9:25
David Crow1-Mar-06 9:25 
I remember tackling the command-line-parsing problem back when i was in college. It was very challenging and also very rewarding. Years later when I started using Turbo C, I had a file, getopt.c, that I simply added to any project that needed this functionality. Now the function, in its various forms, can be found in several places on the Internet.

cuteee wrote:
i know that i would have "-" in argv[i][0], i/i/o/c/r/a in argv[i][1] etc


Right.

argv[1] = -i:Test_Data1.txt
argv[2] = -i:Test_Data2.txt
argv[3] = -o:Test_Data_Diff.txt
argv[4] = -c:TOW:Udop:dN,0.2:vU,0.0005:L1P Sats:Slow nSat
argv[5] = -r:TOW
argv[6] = -a:alertfile.txt

cuteee wrote:
I want to take out 0.2 or 25 from this argument and store it in another varable.


In your example, you'll need to parse argv[4]. Take everything between the first comma and the subsequent colon.


"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

"There is no death, only a change of worlds." - Native American Proverb


QuestionSerial Communication Pin
Macerick1-Mar-06 8:18
Macerick1-Mar-06 8:18 
AnswerRe: Serial Communication Pin
David Crow1-Mar-06 9:10
David Crow1-Mar-06 9:10 
GeneralRe: Serial Communication Pin
Ryan Binns1-Mar-06 17:17
Ryan Binns1-Mar-06 17:17 
GeneralRe: Serial Communication Pin
David Crow2-Mar-06 3:11
David Crow2-Mar-06 3:11 
QuestionIHttpNegotiate BeginningTransaction Pin
acroitor1-Mar-06 8:03
acroitor1-Mar-06 8:03 
QuestionHow to realize a textbox in client area? Pin
xyhan1-Mar-06 7:10
xyhan1-Mar-06 7:10 
QuestionRe: How to realize a textbox in client area? Pin
David Crow1-Mar-06 9:09
David Crow1-Mar-06 9:09 
AnswerRe: How to realize a textbox in client area? Pin
xyhan1-Mar-06 9:55
xyhan1-Mar-06 9:55 
QuestionRe: How to realize a textbox in client area? Pin
David Crow1-Mar-06 10:30
David Crow1-Mar-06 10:30 
AnswerRe: How to realize a textbox in client area? Pin
xyhan1-Mar-06 10:46
xyhan1-Mar-06 10:46 
GeneralRe: How to realize a textbox in client area? Pin
David Crow1-Mar-06 10:55
David Crow1-Mar-06 10:55 
GeneralRe: How to realize a textbox in client area? Pin
xyhan1-Mar-06 12:20
xyhan1-Mar-06 12:20 
GeneralRe: How to realize a textbox in client area? Pin
David Crow2-Mar-06 3:15
David Crow2-Mar-06 3:15 
AnswerRe: How to realize a textbox in client area? Pin
Nish Nishant1-Mar-06 11:19
sitebuilderNish Nishant1-Mar-06 11:19 
QuestionEOF for cygwin executable? Pin
9ine1-Mar-06 6:00
9ine1-Mar-06 6:00 
AnswerRe: EOF for cygwin executable? Pin
Dan McCormick1-Mar-06 7:32
Dan McCormick1-Mar-06 7:32 
GeneralRe: EOF for cygwin executable? Pin
9ine1-Mar-06 22:18
9ine1-Mar-06 22:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.