stdio
Why doesn't `putStrLn getLine` work?
I\'m c开发者_如何学Goomplete newbie on Haskell. My Haskell script with GHCi, Prelude> let a = putStrLn getLine[详细]
2023-02-15 09:33 分类:问答How can I read a file word by word using stdio.h in C?
I\'m new to C and I can\'t quite get it without a segmentation fault. Here\'s my idea so far: #include<stdio.h>[详细]
2023-02-15 07:46 分类:问答MSVC/Linux code for count_sprintf
I need function count_sprintf() that should return number of characters (not inc nul byte) needed for the formatted buffer, on Win32 and on Linux.[详细]
2023-02-14 11:02 分类:问答Short int - how to save to the file
I have unsigned short int 开发者_开发知识库(from 0 to 65535) and I must save it to the file, using stdio and consuming 2 bytes, but I don\'t know, how.[详细]
2023-02-13 09:37 分类:问答How can I get an int from stdio in C?
I have significant trouble with this... printf(\"> \"); int x = getchar(); printf(\"got the number: %d\", scanf(\"%d\", &x));[详细]
2023-02-13 08:12 分类:问答Different input/output stream for every forked process
I have some code, where several processes are created by forking. Every process have popen() function to execute some shell command. Problem is that all of these processes use same input/output stream[详细]
2023-02-11 22:28 分类:问答What are the properties of the Objects of type FILE
FILE objects are usually created by a call to either fopen or tmpfile, which both return a reference to one of[详细]
2023-02-07 17:28 分类:问答How can I redirect the STDIO to a GUI component on a java app?
On C I would simple create a couple of pipes and use dup2 to overwrite the std file descriptor, while on the other end I\'d create a thread for each outputing pipes (sdtout, sdterr) on a infinite loop[详细]
2023-02-02 21:07 分类:问答putc needs stdout, vs puts
C history question here.Why does the C function putc require a second parame开发者_Go百科ter like[详细]
2023-02-02 07:20 分类:问答Writing to a file and console in C
I am trying to write a function that allows me to write to the console and a file in C. I have the following code but i realized that it does not allow me to append arguments (like printf).[详细]
2023-02-02 06:31 分类:问答
加载中,请稍侯......