Samrat
/report
Ибраги́м
/ban yo criminal!
Bader
So it IS true that Mac uses a different way of compiling vs Linux?
Bader
Linux uses ELF, where as macOS uses MACH-O or smth?
Ибраги́м
Samrat
Bader
So, for example then if I try a Linux-compiled cpp file then it will not run on Mac because the format is different?
Anonymous
If the Mac has the libraries, then it should run
Anonymous
Depends on how Mac functions, but because Mac is FreeBSD then it should function relatively the same
Anonymous
Except for something like Windows where you need <windows.h> api library to run on
Bader
Anonymous
Show me
Bader
linker would yell at me when I went to string everything together
Anonymous
Maybe it's a problem in your code
Anonymous
Maybe you didn't include Mac api libs
Bader
interesting didn't even know about that
Anonymous
I don't write for Mac, I wouldn't know entirely. I write for windows and bsd.
Anonymous
Linux kernel is shit
Anonymous
90% of linux distros are shit
Anonymous
If you use systemd, you must hate privacy and freedom
David
Anonymous
Nonsese
You're nonsense
Bader
SO i'd get something like this
Bader
I do have access to the original files, so I'll probably compile them myself
Bader
will have to make edits to the lib most likely anyway
Anonymous
use g++
Anonymous
clang will compile and make the program run slower than cc or gcc / g++
David
You're nonsense
I don't care. But saying that a free software is against privacy and freedom doesn't makes much sense anyway
Bader
Anonymous
https://ihatesystemd.com/
Bader
then again Mac OS and Windows are the same xD
Anonymous
1. systemd is funded mainly by gov't agencies
2. systemd always has pid at the start, meaning it controls your system entirely, and hasn't been audited. That's an unknown set of code running at pid 1.
Why would I allow something funded by the government to run at pid 1?
David
David
BTW, I don't like nor use systemd, but I don't believe in conspiracies or hypothesis
Anonymous
It's not conspiracy.
Remember, with the code base not audited, you can get bugs like heartbleed
Anonymous
That bug could have been easily patched had someone audited it
David
Ибраги́м
Aadarshhh
hello
David
But I get your point, it's simply that your initial argument was far to exaggerated
Anonymous
Not having hte code audited is the same as running a binary without the code
Anonymous
thr*
Anonymous
the*
David
ie: HATING privacy and freedom because of it
Aadarshhh
in C++ there is provision that The data members and member functions declared public can be accessed by other classes too....
Aadarshhh
http://cpp.sh/3tybe
Ибраги́м
Aadarshhh
but look this code once
Anonymous
_Oh really_
Anonymous
I thought Telegram supported markdown
Aadarshhh
I can't get why error is showing while accessing x
Aadarshhh
since it is declared as public
Aadarshhh
http://cpp.sh/3tybe
Bader
Fun fact: The Telegram Desktop client is written in cpp
Bader
just thought I'd throw that out there xD
Anonymous
Ибраги́м
Anonymous
#include<stdio.h>
#include<conio.h>
void main()
{ textbackground(BLUE);
textcolor(YELLOW);
clrscr();
int i,j,k,f,sum=0,s,revi,revf,avg=0,o,ch,e,a[20],temp=0,l,min=0,max=0;
printf("Enter limit of Array = ");
scanf("%d",&l);
printf("\n Enter Your Element \n ");
for(i=0;i<l;i++)
{scanf("%d",a[i]);}
printf("\n 1. Even Valued Numbers ");
printf("\n 2. Odd Valued Numbers ");
printf("\n 3. Revers The Array ");
printf("\n 4. Remove Duplicate Numbers ");
printf("\n 5. Sum and Average ");
printf("\n 6. Minimum & Maximum Value ");
scanf("%d",&ch);
switch(ch)
{ case 1:
for(e=0;e<l;e++)
{ if(a[e]%2==0)
printf("%d ",a[e]);
}
break;
case 2:
for(o=0;o<l;o++)
{ if(a[o]%2!=0)
printf("%d",a[o]);
}
break;
case 3:
for(revi=0,revf=l-1;revi<l,revf>l;revi++,revf--)
{
temp=a[revi];
a[revi]=a[revf];
a[revf]=temp;
}
printf("The Reverse of the array is \n ");
for(i=0;i<l;i++)
{ printf("%d \t",a[i]);
}
break;
case 4:
printf("\n ORIGINAL ARRAY \n ");
for(i=0;i<l;i++)
{ printf("%d",a[i]);
}
printf("\n FINAL ARRAY AFTER REMOVE OF DUPLICATEs \n ");
for(i=0;i<l;i++)
{
for(j=i+1;j<l;j++)
{
if(a[i]==a[i])
{
for(k=j;k<l;k++)
{ a[k]=a[k+1];}
l--;
}
else
{j++;}
}
}
for(i=0;i<l;i++)
{ printf("%d",a[i]);}
break;
case 5:
for(s=0;s<l;s++)
{ sum+=a[s];
}
avg=sum/l;
printf("\n The Sum is %d",sum);
printf("\n The AVG is %d",avg);
break;
case 6 :
for(i=1;i<l;i++)
{
if(a[i]>max)
{max=a[i];
}
else { min=a[i];
}
}
printf("\n Maximum Number is %d",max);
printf("\n Minimum Number is %d ",min);
break;
default :
printf("\n You have Entered wrong Input ");
}
getch();
}
Anonymous
i am having issue in this program anyone there to help me
iamadi
What error,?
BinaryByter
BinaryByter
restart from scratch
BinaryByter
and don't use goto
Anonymous
Anonymous
How do I hack a cellphone?
BinaryByter
step one
BinaryByter
learn how to google
Anonymous
I guess, I asked the wrong question.....*not in a correct phrase
BinaryByter
rephrase
BinaryByter
With rephrasing?
BinaryByter
do you speak french or german?