Ludovic 'Archivist'
hlo family.😇😇 please can some help explain to me what a buffer is... and how to flush it?
This is in the context of IO that we talk about flushing a buffer
Ludovic 'Archivist'
A buffered IO means that we store multiple bytes of information to write it in bulk
Ludovic 'Archivist'
Flushing means that whenever or not you reach a certain quota of bytes, you write said information that is stored in the buffered IO
Ludovic 'Archivist'
hlo family.😇😇 please can some help explain to me what a buffer is... and how to flush it?
The information is stored in a buffer, hence the expression "to flush the buffer", what you actually flush is a stream of IO
Ludovic 'Archivist'
waow.. good. and what is the syntax t flush it??
In C, fflush(FILE*) In C++, ostream.flush(), ostream.operator<<(std::endl) also flushes the stream but sends a new line character before doing so
uncle
Walter
 I am starting to learn C and I have decieded to use CodeBlocks to compile my programs. I ran into some trouble. I created a new project console application and automaticly there was a "hello world" program. I want to make a program of my own in this project so I created a new file, but when I run the new file is automaticly runs the hello world? I have built and run.
Walter
Create new empty project and add main.c file by yourself
My doubt is should can't it use multiple files in same project with separate main in each file??
Anonymous
#ot
Rekha
Some rules of programming
Dima
no.
Mehmet Akif Aksoy
hello guys
Dima
welcome
Anonymous
Hello
13✙666
Hello
13✙666
Guys, anybody knows whats will be happen with modules ?
Mihail
what do you mean what will happen?
13✙666
Mihail
13✙666
c++2a likely
YEah !!! )))
13✙666
Thank you !
Dima
BinaryByter
*triggered* C++ is multiparadigm, OO is just a small part of it
It is 1/3 of the paradigms that are natively supported
BinaryByter
- functional - oop - procedural
BinaryByter
saying that its just a small part of it is making it a disservice
Mihail
Dima
functional is a crap
Anonymous
BinaryByter
Yeah well 1/3 is very far off of 3/3
I didn't say that C++ is OO only
BinaryByter
Kids do that
functional != procedural
Anonymous
functional != procedural
I know the difference
BinaryByter
I didn't say that C++ is OO only
i just said that 1/3 is small
BinaryByter
I know the difference
Functional can be cool - especially with callbacks
Anonymous
There is structural programming too
klimi
Why is functional bad?
BinaryByter
Why is functional bad?
it tends to become messy if you do functional only
klimi
Haskell looked fine
BinaryByter
because functional programming uses very theoretical paradigms
Mihail
i just said that 1/3 is small
Yes that's what ludo said too
klimi
Mihail
Yet you obviously have to disagree
BinaryByter
Yes that's what ludo said too
i meant to say "isn't"
Mihail
i meant to say "isn't"
Well then you're wrong
Mihail
Because it really is a small part of the language
BinaryByter
Well then you're wrong
what is your definition of small?
Anonymous
Ouch, I gave an answer just to quickly tell him difference between too, I know I would have said in more detail,. Now it lead to a great debate here
Mihail
1/2 is like below big
BinaryByter
Because it really is a small part of the language
go ahead find me a modern C++ project that doesn't use classes or only uses them sparingly
Anonymous
BinaryByter
What's the point of using C++ if no classes are used.
Try getting that through mihail's "I want to make maxi look bad" mentality
BinaryByter
constructing definitions just to not lose the debate is ... pathetic
Anonymous
I'm gonna stay silent
BinaryByter
1/3 is not a small amount
BinaryByter
the biggest party in germany was voted by less than 1/3
Anonymous
/* programming debate turned to a political debate */
BinaryByter
not really, no
Anonymous
Mihail
Try getting that through mihail's "I want to make maxi look bad" mentality
You're the one who started nitpicking on literally everything
BinaryByter
true 🤔
BinaryByter
but i just argumented against ludovic's claim
BinaryByter
you instantly start bashing on me on the assumption that i'm wrong while showing quite clearly that you have no idea
BinaryByter
Mihail
Also why is everything that someone says to you "bashing you"?
BinaryByter
okay sure you win
BinaryByter
If you dont understand what I tell you
BinaryByter
¯\_(ツ)_/¯