Anonymous
In the same function, can you pass one var by value and another var by pointer?
Anonymous
Is that allowed in cpp?
olli
Yes you can, void foo(void * ptr, char & c, int i);. pass ptr as pointer to void, c as reference to char and i as int by value
olli
Mhm thanks
you're welcome
Krithik Kumar
Krithik Kumar
What is that expected = , ; asm error
Krithik Kumar
How to solve the error
BinaryByter
HOLY SHIT
BinaryByter
What is that expected = , ; asm error
you don't have an ASM error
BinaryByter
I don't have enouhg context
BinaryByter
but i'd say that you have something unclosed
BinaryByter
like. a parenthesis or something
klimi
HOLY SHIT
I love that theme
Krithik Kumar
#include<stdio.h> #include<ctype.h> #define max 50 char i[100],p[100]; char s[max]; int top=-1; //------------- void push(char e) { if(top==max-1) printf("overflow"); else s[top++]=e; } char pop() { return(s[top--]); } int priority(char ch) { switch(ch) { case '(':return 0; case '+':return 1; case '-':return 1; case '*':return 2; case '/':return 2; } } //------------- void conversion() { char ch,temp; int s1,t=0; for(s1=0;i[s1]!='\0';s1++) { ch=i[s1]; if(ch=='c') push(ch); else if(isalnum(ch)) p[t++]=ch; else if (ch==')') while((temp=pop())!='(') p[t++]=temp; else { if(top==-1) push(ch); else { if(priority(s[top]=priority(ch))) p[t++]=pop(); else push(ch); } } } } //------------- if(top!=-1) for(i=0;i<=top;i++) { p[t++]=pop(); p[t]='\0'; } void main() { int i; scanf("%s",i); conversion(); printf("%s",p); }
Krithik Kumar
This is the code I have typed
Krithik Kumar
Can anyone plz check the error
Krithik Kumar
.
Krithik Kumar
Mark
Hello
Anonymous
Hi
theStarkovv
Hello
klimi
@Occupato
Mat
#offtopic
Anonymous
#offtopic
Umban me
klimi
Umban me
You're banned?
Anonymous
klimi
Yez plzz
We should have global bans then
klimi
Or ban not
Go to graveyeard
Anonymous
Go to graveyeard
No normies there only admin
Vishnu
How change color of terminal 🤔
Anonymous
Hi
Anonymous
How change color of terminal 🤔
He use coloured paper in camera
sv
Ya sure
Mihail
No normies there only admin
You're there tho
Anonymous
You're there tho
I not talk with myself
Shivam
Shivam
Lulz
Ŧu尺kano
C++ is shit. Js is thr best programming language.
Dima
instant ban
Dima
lol imagine that it’s not sarcasm
Dima
RIP
Prometheus
Sentance him to the camp of last hope
Леонтий
Ŧu尺kano
I write a ln operating system in JS.
Ŧu尺kano
I am not a troll.
Ŧu尺kano
Totally not.
Prometheus
Even if it's an opinion its blasphemous and a punishment needs to be dulled out. It's out of our hands.
Dima
lol try harder to make it look like a fun thing
Dima
Dima
also go to OT for such stuff
Ŧu尺kano
Dima
totally not
Dima
go away
Dima
I mean go to ot
Ŧu尺kano
NoU. Scratch best
I surrender. You are right.
Dima
some innerworldy humor there
Dima
Shivam
Cool
Roxifλsz 🇱🇹
Making shit up about an OS in JS smh
Kuldeep
thanks
Mihail
Making shit up about an OS in JS smh
It's actually possible to program an ESP in JS. Never tried but it must be very shitty https://www.espruino.com
Roxifλsz 🇱🇹
Mihail
ESPs run XTOS
Mihail
Then with their interpreter on top for JS
Hayk
RaC/C++ism
Anonymous
Sorry, this is coming late but D is merged officially into GCC
Anonymous
GDC is now Officially part of GCC Family
Anonymous
https://forum.dlang.org/post/bimeivfswuexdezuflkl@forum.dlang.org
Ибраги́м
https://herbsutter.com/2018/11/05/pre-trip-report-fall-iso-c-standards-meeting-san-diego/
Ибраги́м
SG 19: Machine Learning
Ибраги́м
WTH!
klimi
omg