klimi
Everything comes down to instructions so ¯\_ (ツ) _/¯ meh
Anonymous
Anonymous
C was created for unix and unix rewritten in c
klimi
Its cool how I can maintain a discussion even tho I dont know c or c++ xD
Anonymous
You're even an admin
klimi
Yes
klimi
Thats right
Рома
Help please!!! I want to do sorting in ascending order. How do I process this code:?
klimi
Рома
void sortByAverageMark(student* Node) { student* p1, * p2, * pp1, * pp2, * tmp; for (p1 = Node; p1->next; p1 = p1->next) { for (p2 = p1->next; p2; p2 = p2->next) { pp1 = prev_student(Node, p1); pp2 = prev_student(Node, p2); if (p1->average < p2->average) { if (p1->next == p2) { tmp = p2->next; p2->next = p1; p1->next = tmp; } else { tmp = p2->next; p2->next = p1->next; p1->next = tmp; pp2->next = p1; } if (!pp1) Node = p2; else pp1->next = p2; tmp = p1; p1 = p2; p2 = tmp; } } } }
Рома
But I want to sort List
Рома
Igor🇺🇦
Yes
so just use the sort with opposite comparison operator
Рома
I tried to change comparison operator, but it's didnt help
Igor🇺🇦
I tried to change comparison operator, but it's didnt help
Descending order is just a reverse of ascending order. If sorting works changing < to > should do a trick
Igor🇺🇦
I tried to change comparison operator, but it's didnt help
It's better to pass comparator as an argument to your sort method.
ex4_mp1e
Is there any app we can code cpp in android..?
ex4_mp1e
Yes
Can you send me the link of this app to download
Asdew
Is there any app we can code cpp in android..?
That's just stupid. Why the heck would you ever want that?
ex4_mp1e
That's just stupid. Why the heck would you ever want that?
Then i can coding in my laptop and also my phonr
ex4_mp1e
Termux
Tha ks
Asdew
Then i can coding in my laptop and also my phonr
Programming on a phone is horrible and you don't have the same environment as on your laptop. Just use your laptop.
Asdew
Vim is better.
ex4_mp1e
Vim is better.
For c++..?
ex4_mp1e
Yes.
Ok..
Asdew
Ok..
Problem?
ex4_mp1e
No
klimi
Hey
Noble Friend
Hey
klimi
Ok
Nameful
That's neat
Dima
by making more question marks you won’t get your answer faster somehow
Dima
sizeof is a size of your object
MᏫᎻᎯᎷᎷᎬᎠ
professor
do you think is good as a crash bootcamp for c to asm ? https://tnujzvrbqma4eaczqdlaig-on.drv.tw/work/bootcamp.html note: url its from google drive hosting pages
Ajay
struct X { void foo(int) {} void foo() {} }; int main() { X x{}; x.foo(3); } this is function overloading but not compile time polymorphism. Why?
Anonymous
Start programming, working on kernels...
First of all I need basic I think?
Mat
Cpp, C, kernels, programming... ?
Bunyamin
using namespace std; void HarfNotu(int notlar); int main(){ double notlar; cout<<"not giriniz"; cin>>notlar; HarfNotu(notlar); } void HarfNotu(int notlar){ if(notlar<=100 || notlar>=90,00){ cout<<"notunuz: AA "<<endl; } if(notlar<=89,99 || notlar>=80,00){ cout<<"notunuz: BA "<<endl; } if(notlar<=79,99 || notlar>=70,00){ cout<<"notunuz: BB "<<endl; } if(notlar<=69,99 || notlar>=65,00){ cout<<"notunuz: CB "<<endl; } if(notlar<=64,99 || notlar>=60,00){ cout<<"notunuz: CC "<<endl; } if(notlar<=59,99 || notlar>=55,00){ cout<<"notunuz: DC "<<endl; } if(notlar<=54,99 || notlar>=50,00){ cout<<"notunuz: DD "<<endl; } if(notlar<=49,99 || notlar>=40,00){ cout<<"notunuz: FD "<<endl; } if(notlar<=39,99 || notlar>0,00){ cout<<"notunuz: FF "<<endl; } if(notlar==0){ cout<<"notunuz F1"; //değişecek } }
Bunyamin
bir bakabilir misiniz fonksiyonu çağıramıorum
Dima
Lol
Bunyamin
dosyası da bu
Dima
dosyası da bu
read the rules
Bunyamin
/I can't call the function, can you help?
Drew Diligence
/I can't call the function, can you help?
double notlar; and then you have int notlar and then you have 90,00 (i think you mean 90.00 ?
Bunyamin
Bunyamin
/new file
Drew Diligence
wtf kind of filename is that
Dima
silly one
Drew Diligence
of course it will return AA
Drew Diligence
might as well skip all your if statements and return AA
Anonymous
thanks but new error this program is constantly pushing a
Because the first condition is always true lol
Igor🇺🇦
It's better start with c or c++
If want to have a career in programming it's better to start with basic languages like C. It will teach you more about computers and how programming actually works. If you want just to be familiar with programming in general - start with something easy like python. Python hides a lot of unpleasant details and handles it automatically
Dima
indeed
Chernykh
C
And this too
Chernykh
C
This too
Chernykh
ASM
Integral schemes
Dima
Dima
just because of C you can understand structures better
Mat
They can get you straight to the point without useless stuff as main or private or other stuff
Dima
memory, alignment
Mat
memory, alignment
That's not about Programming
Dima
never start with python :^)
Mat
You can create a beautiful application without knowing int is 4B or long 32 or 64 or something else Bytes 🤷‍♂