Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. what is stdin and its friends?

what is stdin and its friends?

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Newborn Naughtysaint
    wrote on last edited by
    #1

    everybody knows what is the meaning of stdin, stdout, stderr, stdaux, and stdprm? i just know those are standard input device, standard out device, and so on ... but i don't have any idea(i don't understand) about standard input device, and its friends. can somebody explain to me? thousands thanx:) >>when someone know more and more, they will feel they have weakness<<

    J B 2 Replies Last reply
    0
    • N Newborn Naughtysaint

      everybody knows what is the meaning of stdin, stdout, stderr, stdaux, and stdprm? i just know those are standard input device, standard out device, and so on ... but i don't have any idea(i don't understand) about standard input device, and its friends. can somebody explain to me? thousands thanx:) >>when someone know more and more, they will feel they have weakness<<

      J Offline
      J Offline
      jhwurmbach
      wrote on last edited by
      #2

      They are io-streams that are opened by the runtime lib for you. Stdin is by connected to the console by default (but may be connected to some file with '<' on the command line. Stdout is connected to to a console window on the screen by default, but can be redirected to a file with '>' on the command line. Stderr is by default connected like stdin, but can not be redirected. I hope this could help you a bit.


      My opinions may have changed, but not the fact that I am right.

      1 Reply Last reply
      0
      • N Newborn Naughtysaint

        everybody knows what is the meaning of stdin, stdout, stderr, stdaux, and stdprm? i just know those are standard input device, standard out device, and so on ... but i don't have any idea(i don't understand) about standard input device, and its friends. can somebody explain to me? thousands thanx:) >>when someone know more and more, they will feel they have weakness<<

        B Offline
        B Offline
        Bob Stanneveld
        wrote on last edited by
        #3

        Those are just streams! just like any files streams, memory streams,... You should find all the information you need in the MSDN library :)

        A student knows little about a lot. A professor knows a lot about little. I know everything about nothing.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups