| | |
I/O function misunderstanding
![]() |
Hi everyone. I am so confused in input and output! I'm following what it looked to be a nice tutorial from VTC and it shows how to use scanf and printf.
But i'm seeing everywhere things like printf and scanf and getc, getch, puts, gets...wtf? I learnt the diff between getc and getch, but i dont know which one should i use, why one is better than another...
In the other hand in this video he's using c = getchar() to get letters from the keyboard being c an integer?!
I also don't know what's exactly a buffer, when to flush it, and how this exactly works.
Pointers went good but i'm really stuck with i/o functions. Can anyone point a good tutorial/manual/video/examples of these so i can learn this issue for once? It's no problem if it's too extense or detailed, i want to understand it from the lowest.
Thank you!
But i'm seeing everywhere things like printf and scanf and getc, getch, puts, gets...wtf? I learnt the diff between getc and getch, but i dont know which one should i use, why one is better than another...
In the other hand in this video he's using c = getchar() to get letters from the keyboard being c an integer?!
I also don't know what's exactly a buffer, when to flush it, and how this exactly works.
Pointers went good but i'm really stuck with i/o functions. Can anyone point a good tutorial/manual/video/examples of these so i can learn this issue for once? It's no problem if it's too extense or detailed, i want to understand it from the lowest.
Thank you!
Last edited by neithan; 27 Days Ago at 1:23 pm.
0
#3 27 Days Ago
•
•
•
•
I/O is kind of complicated in C. Can you list out your questions so that it is easier to answer them? I will be happy to give you all of the details you want, but right now it feels like I would end up writing a small book.
Well, that would be nice but that's why i asked for manuals etc because i think i'm gonna need a lot of info to really learn the I/O in C.
I mean i don't have an exact question, is the whole issue that i want to know and i havent found anything that covered all of them and explained nicely why and how to use each of them.
Really isn't there any guide or something to master something that important in C like it is I/O?
Thank you for your time!
0
#4 27 Days Ago
The 3 Laws of the Procrastination Society:
1) Never do today that which can be put off until tomorrow
2) Tomorrow never comes
1) Never do today that which can be put off until tomorrow
2) Tomorrow never comes
0
#5 26 Days Ago
Oh, google, how didn't i though of that?
I actually googled that before asking but i found C++, file input output or incomplete information in plain C I/O that's why i asked if you happen to know a good resource.
I actually googled that before asking but i found C++, file input output or incomplete information in plain C I/O that's why i asked if you happen to know a good resource.
0
#7 26 Days Ago
>Google: the response to much and the answer to nothing.
If you can't find complete information about I/O in C from google, you're either an idiot or a liar. It's easier just to say that you were too lazy to do a thorough search and need someone to point you to the one true reference.
If you can't find complete information about I/O in C from google, you're either an idiot or a liar. It's easier just to say that you were too lazy to do a thorough search and need someone to point you to the one true reference.
Last edited by Narue; 26 Days Ago at 7:48 pm.
I'm here to prove you wrong.
0
#9 25 Days Ago
It seems that is. Although Narue forgot to mention a beginner once failed seeking a very specific resource by himself in a subject he is totally new to.
Yes that seems to be what i was looking for. It's a shame that you think insulting people makes you look smarter, though. Maybe next time you improve your spotting system of trolls and avoid embarrassing yourself like that.
•
•
•
•
>Google: the response to much and the answer to nothing.
If you can't find complete information about I/O in C from google, you're either an idiot or a liar. It's easier just to say that you were too lazy to do a thorough search and need someone to point you to the one true reference.
0
#10 25 Days Ago
>>If you can't find complete information about I/O in C from google, you're either an idiot or a liar.
>Does it have to be so binary?
In my experience, yes.
>Although Narue forgot to mention a beginner once failed seeking
>a very specific resource by himself in a subject he is totally new to.
No, Narue just skipped to the end result of providing the best possible reference. I could easily show you that a braindead google search string would result in enough information on the subject to fill the Library of Congress. But I didn't want to embarrass you too much by proving that the only person who can't find complete information on google is too stupid to be a programmer, or didn't actually search google.
>It's a shame that you think insulting people makes you look smarter, though.
You have no idea what I'm thinking, so please keep those faux omniscient statements to yourself.
>Maybe next time you improve your spotting system of trolls and avoid embarrassing yourself like that.
It takes quite a bit more than a whiney noob to embarrass me. Also note that I never called you a troll. I'm not sure where that came from. Trolls have completely different behavior patterns.
>Does it have to be so binary?
In my experience, yes.
>Although Narue forgot to mention a beginner once failed seeking
>a very specific resource by himself in a subject he is totally new to.
No, Narue just skipped to the end result of providing the best possible reference. I could easily show you that a braindead google search string would result in enough information on the subject to fill the Library of Congress. But I didn't want to embarrass you too much by proving that the only person who can't find complete information on google is too stupid to be a programmer, or didn't actually search google.
>It's a shame that you think insulting people makes you look smarter, though.
You have no idea what I'm thinking, so please keep those faux omniscient statements to yourself.
>Maybe next time you improve your spotting system of trolls and avoid embarrassing yourself like that.
It takes quite a bit more than a whiney noob to embarrass me. Also note that I never called you a troll. I'm not sure where that came from. Trolls have completely different behavior patterns.
I'm here to prove you wrong.
![]() |
Similar Threads
- My python program/function! (Python)
- Calling PHP function on Javascript events e.g onchange (PHP)
- Code Snippet: Function plotting in C# (C#)
- help with creating and calling a function (C++)
- Recursive function - checking for palindromes (C)
Other Threads in the C Forum
- Previous Thread: pass excel sheet in linux C using libxls
- Next Thread: open file as soon asyou run a command. How?
| Thread Tools | Search this Thread |
#include adobe api array arrays asterisks binarysearch calculate char cm copyanyfile copyimagefile copypdffile cprogramme creafecopyofanytypeoffileinc createcopyoffile createprocess() csyntax database directory dynamic feet fflush fgets file fork forloop frequency getlasterror givemetehcodez global graphics gtkgcurlcompiling hacking highest homework i/o inches include incrementoperators input interest kernel kilometer km linked linkedlist linux linuxsegmentationfault list locate logical_drives loopinsideloop. match matrix meter microsoft mqqueue mysql number odf open openwebfoundation owf pattern pdf performance pointer posix probleminc process program programming pyramidusingturboccodes radix read recursion recv repetition research scanf scheduling segmentationfault send sequential shape socket socketprograming socketprogramming stack standard string systemcall turboc unix user voidmain() wab win32api windows.h






