klimi
Everything comes down to instructions so ¯\_ (ツ) _/¯ meh
Anonymous
Anonymous
C was created for unix and unix rewritten in c
Anonymous
klimi
Its cool how I can maintain a discussion even tho I dont know c or c++ xD
Anonymous
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
Igor🇺🇦
Рома
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
ex4_mp1e
Is there any app we can code cpp in android..?
klimi
ex4_mp1e
Yes
Can you send me the link of this app to download
ex4_mp1e
ex4_mp1e
Nameful
ex4_mp1e
Asdew
Vim is better.
ex4_mp1e
Asdew
ex4_mp1e
Asdew
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
Anonymous
klimi
Mat
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
Anonymous
Dima
Lol
Bunyamin
dosyası da bu
Dima
Bunyamin
/I can't call the function, can you help?
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
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
Chernykh
Chernykh
Chernykh
Dima
Mat
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
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 🤷♂
Dima