Aadarshhh
this is working
Dima
try putting very large values
Dima
larger than int max
Dima
preciously will be lost
Aadarshhh
a=10000 int b = a * 5/2; why is not working?
Anonymous
for(;;)-how is this an infinite loop?
for (;;) //no expression condition equal always true for (a = 1; a < 5; ++a) //there are 3 expression condition
Aadarshhh
Anonymous
I don't get ans of this
Or b = a (5/2) Or b = (a 5) /2 Whats problem?
Anonymous
I don't get ans of this
What is the ans that you are getting?
Anonymous
20000?
Aadarshhh
Anonymous
Anonymous
yes
Expected
Anonymous
See 5/2 is 2.5
Aadarshhh
I've studied one notes
Aadarshhh
Aadarshhh
and it says this how?
Anonymous
And the calculation output should be int
Aadarshhh
why is it e=writing incorrect in the note bro
Anonymous
So it ignores the places after decimal
Anonymous
And takes only the int part
Aadarshhh
int b = a * 5/2; //incorrect (can you think how?)
Aadarshhh
I still can't get thisline
Anonymous
Anonymous
The code is working fine no errors
Anonymous
Or warning
Dima
sure that will work
Dima
maybe thats incorrect in terms of calculating? (like first * and then +)
Anonymous
Its called operators precedence while doing *,/ ,% it works from left to right
Anonymous
anyone using any c++ ide on linux?
Anonymous
or how do u compile a c++ program in linux?
Anonymous
using terminal or IDE?
Dima
CodeLite and CodeBlocks are pretty awesome
Dima
oh and also CLion
Dima
CodeLite looks more modern but others are like 1990-2000 design lol
Dima
You can use VSCode and compile thru terminal
Dima
but thats naughty
Anonymous
oh and also CLion
its not free
Dima
well, you know what to do
Dima
hue
Anonymous
gedit😂😂
Anonymous
and terminal
Dima
just dw it somewhere
Anonymous
codeblock frequently crashes in ubuntu
Dima
I don't see any rule here about warez so just get torrent and download full CLion version
Anonymous
hmm
Anonymous
but it might be difficult to find one for linux
Anonymous
and i just hate windows
Dima
found one for osx like in five minutes
Anonymous
uninstalled it nearly 3 years ago
Dima
still working, downloaded like a yr ago
Anonymous
then i will find it too
Dima
gl
Anonymous
👍
Anonymous
gl??
Dima
opengl
Dima
nah g ood l uck
Anonymous
dayumm
Anonymous
I still can't get thisline
You need type casting
Anonymous
Qtcreator забыл, Дима
Igor🇺🇦
Eclipse works fine as well
Filippo
Hello everyone, i'm writing a small compiler for educational purposes only and I've already done lexer, parser and now I'm integrating llvm for the generation of the code. Someone more expert would be so kind as to give me some advice? Like, what is the most efficient parsing technique or things like that? Thank you very much to those who answer
Was removed
Was removed
Any body good at pascal?..i have a task
Dima
C#
Dima
if (!strcmp(input, "C#")) TRIGGERED();
Dima
D-minor C#-major
Alignant
Why do Java programmers wear glasses? Because they don't see sharp
Dima
Dima
they cant see sharp and so thinkin that C is hard
Ariana
D-minor C#-major
D minor and Dbmajor dont fit mdr
Was removed
Anonymous
Read🤝
jx
{     vector<int> ar = { 1, 2, 3, 4, 5 };     vector<int> ar1 = {10, 20, 30};      // Declaring iterator to a vector     vector<int>::iterator ptr = ar.begin();     // Using advance to set position     advance(ptr, 3);     // copying 1 vector elements in other using inserter()     // inserts ar1 after 3rd position in ar     copy(ar1.begin(), ar1.end(), inserter(ar,ptr));     // Displaying new vector elements     cout << "The new vector after inserting elements is : ";     for (int &x : ar)          cout << x << " ";     return 0;     } Can somebody explain what happens after advance() iterator??
Anonymous
What r major programs which are in demand in it