harry
so would you advise to use constexpr or const for those global constants then?
Liam
so would you advise to use constexpr or const for those global constants then?
I prefer to apply both of them, since it'll make my codes looks more. (lol)
harry
hehe
Roxifλsz 🇱🇹
Appreciate your reply Can you please tell me how can i reset the colours to original?
I did have some code for that lying around. I'll respond with it later
Compilation
Will check it Thanks
j@ke
Can anyone Explain why this prints 90, 92, 94, 95, Instead of 90, 92, 94, 95
Anonymous
Anonymous
Oh the ','?
j@ke
it's printing a comma, on the last value
j@ke
should done better job pointing out
Anonymous
Because if condition is always satisfied
Anonymous
i is fairly less in value than hourlyTemp[i]
Anonymous
So it prints the comma as stated
j@ke
so if i changed it to NUM_VALS < hourlyTemp[i] - 1? would that unsatisfy the condition?
Anonymous
No
Anonymous
That is a constant and is also way lower in value
Mike
Somebody can say me one linux distribution that go góod with codeblocks?. I have used ubuntu and fedora.
Anonymous
Fedora has the most updated version of C::B
j@ke
it worked for me when i used it :
j@ke
on fedora
Anonymous
Can anyone Explain why this prints 90, 92, 94, 95, Instead of 90, 92, 94, 95
Try this dirty hack : place comma before the number and put a counter which if 0 doesn't put the comma
Anonymous
So you will be saved there
j@ke
❤️ thanks man, i'll give it a try! appreciate it
Anonymous
Can anyone Explain why this prints 90, 92, 94, 95, Instead of 90, 92, 94, 95
And also you can prefer not use NUM_VALS. You are using it as a constant integer so you can just write 4 at all the places. It won't be much of a diff in this program but may affect in long term
j@ke
@anunaym14 Passed the first test! thanks to you! much again much appreciated!
Anonymous
Which test btw?
Álvaro
Anonymous
Can you please type?
j@ke
@anunaym14 it's a course on Zybooks.com for an online C++ class i'm taking. The homework gives some like little coding challenges.
j@ke
@alvarospunk i second that
j@ke
@anunaym14 just got the second one! you totally helped me look at the problem in a totally new way!
Anonymous
Do ask if you face any problems in the future
Anonymous
But first do think yourself 🤗
j@ke
@anunaym14 I was stuck on that way longer than I care to admit haha, I'm still pretty new to c++ & programming. How long have you been programming ?
Anonymous
@anunaym14 I was stuck on that way longer than I care to admit haha, I'm still pretty new to c++ & programming. How long have you been programming ?
First did it when I was 14 while robotics class. Then just had been busy and experimenting myself because had to put more time on high school studies. So now it's the final month of high school, exams from Monday :D
j@ke
@anunaym14 well good luck on your exams man! i'm sure you'll crush it :P
Anonymous
Can anyone give link to join best grp related Java Programming and off campus too
Anonymous
Anonymous
BLOCKCHAIN STUDY https://t.me/blockchainstudens
Nomid Íkorni-Sciurus
Hi guys, I'm facing a weird issue here
Nomid Íkorni-Sciurus
Nomid Íkorni-Sciurus
For reasons I can't fathom, this fopen always fails
Nomid Íkorni-Sciurus
The weird issue is not that the file can't open, because fopen actually succeeds
Nomid Íkorni-Sciurus
but it looks like the internal structure faces some exception - I traced it back to ntdll, something about failing heap allocation
Nomid Íkorni-Sciurus
Do you have any clues?
Anonymous
argv[2] is name of the file??
Nomid Íkorni-Sciurus
yes
Anonymous
Put it in " "?
Nomid Íkorni-Sciurus
Put it in " "?
Already tried.
Nomid Íkorni-Sciurus
Solved. the loop before the fopen corrupted the file pointer.
Nomid Íkorni-Sciurus
Oh.
Heh it happens if you forget to initialize array indexes
Anonymous
Hmm I see.
Aman Sharma
correctmaninwrongplace
7 if the Mark down the top point are the 2 lines that goles from bottom to the top point
correctmaninwrongplace
25?
Anonymous
Yep
correctmaninwrongplace
I understand why
correctmaninwrongplace
A little bit confusing the lines
correctmaninwrongplace
But you can get 27
Aman Sharma
Lines should be assumed straight
correctmaninwrongplace
Im going to sleep see you in a while(6 a.m here lol)
harry
24
Aman Sharma
No more
Anonymous
33
Anonymous
33
How??
Anonymous
24? 6 per line.. 3 small , 2 medium, 1 full
Anonymous