Click here to Skip to main content
12,509,612 members (51,094 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C++
I am trying to read 12|11|13 from command line from my application. I get error "11 is not recognozed as an internal command" while reading this string.

I am OK if I can read complete string or individual numbers.

Can anyone suggest how to read this?

Nipun
Posted 2-Dec-12 22:16pm
NipunG399

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

the command interpreter interrets '|' as a pipe sign

if you enclose that parameter like so (quotes) :-

"12|11|13"

if should be passed into your program successfully
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160929.1 | Last Updated 3 Dec 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100