ɢᴀɴᴇꜱʜ
Guys does anyone know how to do algorithm for area of triangle using nested if else statement
temp
Anonymous
yo!
Anonymous
I am a new coder in C++'s World, Where do I start?
temp
𝕷𝖔𝖗𝖊𝖓𝖟𝖔
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
temp
𝕷𝖔𝖗𝖊𝖓𝖟𝖔
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.
A
yasmine
Ok in private here the bot will delet it
mito
Anonymous
where can I find a good C ++ programming book that is not purchased from amazon?😔
Anonymous
Help meeee
Akash
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 🇱🇹
Roxifλsz 🇱🇹
coal
Amazing
i can't judge i mean that was me during my whole middle and highschool
Roxifλsz 🇱🇹
coal
you may need to study C++ by your own then
Roxifλsz 🇱🇹
coal
coal
i wish i knew what this says but the fact i dont know what it says kinda makes it funnier
Roxifλsz 🇱🇹
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
Roxifλsz 🇱🇹
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
I use Arch
Cykat bylat,
We wish you happy New Year too, comrade :)
Anonymous
Let's get nuke those faggot in the us
Anonymous
Cyrillic Russian language is weird.
T or r, you call it g.
Спасибо
Spacibo
C s
п p
a a
с s
и i
б b
o o
Roxifλsz 🇱🇹
Anonymous
this->group.sucks(cant_send(photos(alphabet_table)))
Roxifλsz 🇱🇹
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
Anonymous
Igor🇺🇦
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