ɢᴀɴᴇꜱʜ
Guys does anyone know how to do algorithm for area of triangle using nested if else statement
Ludovic 'Archivist'
Recursive functions increase the activation record and thus the stack memory
That may or may not be true. The standard leaves that unspecified and compilers can or cannot optimize recursion and tail-call recursion
temp
I guess you need to capture arr as reference here, try [&arr] in your lambda
It worked!. Thanx, but aren't array pass by reference already?
I use Arch
It worked!. Thanx, but aren't array pass by reference already?
About captured arrays in lambda expressions https://groups.google.com/a/isocpp.org/g/std-discussion/c/dPLB8v1P5WE?pli=1
Anonymous
yo!
Anonymous
I am a new coder in C++'s World, Where do I start?
𝕷𝖔𝖗𝖊𝖓𝖟𝖔
Hello everyone. I was asked to write a code that swipes the two diagonals of a matrix. While the code was pretty easy to write, there is a theoretical question that I do not know how to solve: it states: "suppose you were to write two different softwares that do this job, the former swapping the diagonals without calling another function, the latter calling a second function in order to do the job. Explain why the second solution is slower and why the first one is better". Basically it looks something like that: FIRST SOLUTION: void swipeDiagonals(int **mat, int dimension){ ___CODE THAT SOLVES THE PROBLEM___ } SECOND SOLUTION: void swipeDiagonals(int **mat, int dimension){ ___ stuff, like setting some parameters i suppose___ compute(parameters); } void compute(parameters){ ___ACTUAL CODE THAT SWIPES THE DIAGONALS OF THE MATRIX, YET THIS FUNCTION IS CALLED BY THE PREVIOUS ONE!!!____ } So, I understand that splitting the solution in two functions is pretty useless, it was easy to write it in just one function, but I don't understand (efficicency-wise talking) why this would be less performing. Since in Computer Architecture course we are also studying Assembler MIPS i thought this could actually be the reason, but I am not sure. I am not asking you to talk about ASSEMBLER of course, but just if you have some time to spare to help me figure out where the issue is. I hope this is ok, I read the rules again and they say "assembly it is also allowed"
𝕷𝖔𝖗𝖊𝖓𝖟𝖔
again, I wrote the code, but, even though I tried to use the things I learned at "Algorithms and data structures" course, like complexity and so on, this doesn't seem to be the answer. Since the main focus here is on calling another function, which is a pretty complex thing to do in Assembler MIPS with saving all the registers and so on, I thought this could be the problem
𝕷𝖔𝖗𝖊𝖓𝖟𝖔
I'll search, thank you very much
Jaime
Feliz año a todos que dios me los bendiga a todos y a cada una de sus familias 🙏
yasmine
hello everyone
yasmine
i ve created a web site and i want you to help with ur feedbacks
yasmine
can someone do?
Doriush
/get cbook
A
Share it.
yasmine
Ok in private here the bot will delet it
Anonymous
where can I find a good C ++ programming book that is not purchased from amazon?😔
Anonymous
Help meeee
Anonymous
Why
Anonymous
Make one
coal
how about you apply what you learnt
coal
because you paid attention in class and you studied by yourself as well right
coal
so you didnt do anything during the 2 months of class that your teacher lectured
coal
welp
Roxifλsz 🇱🇹
coal
Amazing
i can't judge i mean that was me during my whole middle and highschool
coal
you may need to study C++ by your own then
Pavel
you may need to study C++ by your own then
I would say, one needs to study it by themselves in any way (study program is not enough)
Roxifλsz 🇱🇹
coal
i wish i knew what this says but the fact i dont know what it says kinda makes it funnier
Roxifλsz 🇱🇹
i wish i knew what this says but the fact i dont know what it says kinda makes it funnier
The moonrunes say "иди нахуй" - "go fuck yourself" basically
Roxifλsz 🇱🇹
Lol
coal
ok it made it funnier ty
Roxifλsz 🇱🇹
Your are welcome
Roxifλsz 🇱🇹
Russian only
Roxifλsz 🇱🇹
English is actually not allowed here
Roxifλsz 🇱🇹
(joke)
Anonymous
Which type of project you want
coal
(joke)
if you didnt clarify it i think they would have believed it tbh
Anonymous
I have ambulance system
Anonymous
Project
Anonymous
thank you
Anonymous
I need a help
Anonymous
if possible I'm new program learning student
yasmine
Okey okey no problem brother
Anonymous
Write a program that displays all the numbers from 1 to 1000, ten numbers per line, which are divisible by 2 and 3 . (20’)  Write a program that displays all the numbers from 1 to 1000, ten numbers per line, which are divisible by 2 and 3 .  
Anonymous
Russian only
Cykat bylat,
I use Arch
Cykat bylat,
We wish you happy New Year too, comrade :)
Anonymous
Let's get nuke those faggot in the us
Roxifλsz 🇱🇹
Cykat bylat,
Zdarova naxuj, c novim godom
Anonymous
Cyrillic Russian language is weird. T or r, you call it g. Спасибо Spacibo C s п p a a с s и i б b o o
Anonymous
this->group.sucks(cant_send(photos(alphabet_table)))
Anonymous
Anonymous
My vs studio code compiler is not working what can I do for that
Anonymous
If I am clicking on run button they show gss is not found
Anonymous
Kindly install mingw
Anonymous
If linux u r using then install gcc
Anonymous
sudo apt-get install build-essential gdb
Igor🇺🇦
If I am clicking on run button they show gss is not found
https://code.visualstudio.com/docs/languages/cpp
Anonymous
yessir
Anonymous
IDK
Anonymous
#include <QtWidgets/QApplication> #include <QtWidgets/QLabel> int main(int argc, char *argv[]) { QApplication app(argc, argv); QLabel *label = new QLabel("Hello Qt!"); label->show(); return app.exec(); } how do i build it in vsCode with Msys2
Anonymous
I use books to learn it
Anonymous
for example c-crash-course-a-fast-paced-introduction
Anonymous
few hours
Anonymous
Nop 100000000%
Anonymous
When I start reading it, then I just make programs with it and try to figure out how it works and its behind algoriths