How to type an empty string in command line?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • xiaohuamao

    #1

    How to type an empty string in command line?

    Hi, all. I used cin >in my program to get a string into a string
    variable. But i don't know how to type an empty string in the command
    line?
    Could anyone help?

  • Papastefanos Serafeim

    #2
    Re: How to type an empty string in command line?

    Try pressing ctrl+z (DOS) or ctrl+d(Unix).

    --
    Papastefanos Serafeim
    ? "xiaohuamao " <cainiaodelixia ng@gmail.com??? ??? ??? ??????
    news:1154599416 .624385.139820@ m79g2000cwm.goo glegroups.com.. .
    Hi, all. I used cin >in my program to get a string into a string
    variable. But i don't know how to type an empty string in the command
    line?
    Could anyone help?
    >

    Comment

    Working...