BinaryByter
such hard
BinaryByter
much wow
BinaryByter
i'll prolly just end up approximating them as tailor seris, just for the lulz
BinaryByter
👍😄
yay, he got it xD
Mark
@Avamander @rebane2001 join blyat
Puneet
why we use cin.ignore
Rev. Astral
ok
Rev. Astral
so
Rev. Astral
fragment shader
Rev. Astral
how the heck do I get it to display my background and other textures?
Anonymous
/*why we must press Enter after executing execl(); ?*/
Rev. Astral
Lol
Rev. Astral
So my shader now displays the colors
Rev. Astral
But no textures
Rev. Astral
yeah I think I have something wrong.... the code isn't passing along texture files to the sampler2D
Anonymous
B
Anonymous
Hi
Mounika
Hi
Sambhav
Hello!!
Talula
Hi
Presmanes3
Hi
Rampamat
Hello
Dima
NANI
nani
Hi
nani
Dima
Ανδρέας 🇮🇹
NANI
!?!? Kansei Dorifto?
nani
English please
Heisenberg
AkhiL
Hy
Anonymous
BinaryByter
this is too sweet to be warned for, even though its ot
Dima
Oooowwwww
Anonymous
Anonymous
Anonymous
Anonymous
Anyone advanced in c++ as object oriented
klimi
O.o
Mark
wat
Anonymous
terminate called after throwing an instance of 'std::invalid_argument' what(): stoi
Anonymous
:(
klimi
O,o
Anonymous
O,o
????
Anonymous
I am reading numbers from file and converting them to integers
Anonymous
fstream fin; fin.open(s); string readbalancestring; fin>>readbalancestring; int balance; balance = stoi(readbalancestring); return balance
Ибраги́м
fstream fin; fin.open(s); string readbalancestring; fin>>readbalancestring; int balance; balance = stoi(readbalancestring); return balance
try { fstream fin; fin.open(s); string readbalancestring; fin >> readbalancestring; int balance; balance = stoi(readbalancestring); return balance } catch (const std::exception& e) // Something Bad Happened { cout << "Exception: " << e.what() << '\n'; // Notify other part of the code something bad happened }
Anonymous
I tried to calculate the numbers that any power of summation of their digits equals to the number itself, between 1 and 20. But when I run, it only displays 1
Anonymous
Could someone help me?
Abhishek Yadav
what is a friend function
Abhishek Yadav
actually
Anonymous
Who knows wtsapi C++?
Ritu Raj
scanf("%[^\n]%*c");
Ritu Raj
scanf("%[^\n]%*c");
What does this mean?
olli
What does this mean?
Reads an arbitrary number of characters that are not \n, read but ignore the next character. Does the same asgets, Which is bad because it's unsafe
Anonymous
Who knows wtsapi C++?
Mark
Who knows wtsapi C++?
ask this few times more
Mark
;)
Anonymous
)))
Ak47
Hello
Ak47
Anyone know urdu?? If yes plz pm
Ritu Raj
Reads an arbitrary number of characters that are not \n, read but ignore the next character. Does the same asgets, Which is bad because it's unsafe
Does it read(and ignore) character of next statement line? I mean does it read character after pressing 'Enter'?
Ritu Raj
And what does %*c means??
Ritu Raj
Thank you in advance! 😇
olli
And what does %*c means??
reads a character and ignore it (don't write it anywhere). without the asterix (%c) a pointer to a character would be expected to be passed to the function. Using the asterix no such pointer is expected.
olli
Does it read(and ignore) character of next statement line? I mean does it read character after pressing 'Enter'?
in the first part it does not ignore anything. The content being read will be stored in the c-string you pass to the function
olli
Does it read(and ignore) character of next statement line? I mean does it read character after pressing 'Enter'?
If you ask for user input you expect the user to "submit" the input by pressing Enter. This will insert a \n character into the stream. Imagine the user entered Hello World, so the stream now contains Hello World\n. You want to read everything the user wrote up until he hit Enter. So you store the input until you encounter the New Line Feed Symbol (%[^\n]). Now only the \n is left in the stream. You probably don't want any subsequent read operation to start reading the \n character. Therefore you "discard" it by using %*c, which will not store but remove it from the stream.
Ritu Raj
I have been looking for many people to clear my doubts😇😇😇
Ritu Raj
You cleared it!
Ritu Raj
😇😇
olli
Anonymous
)
Ritu Raj
What does scanf("\n"); means?
Ak47
What does scanf("\n"); means?
It transfer control to new line
Ritu Raj
It transfer control to new line
In what generally it is used for?
Ayan
I want to learn PYTHON . From where can I get the best source- udemy, edx,Udacity , YouTube etc which one ?