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
Anonymous
Krithik Kumar
Krithik Kumar
What is that expected = , ; asm error
Krithik Kumar
How to solve the error
BinaryByter
BinaryByter
BinaryByter
I don't have enouhg context
BinaryByter
but i'd say that you have something unclosed
BinaryByter
like. a parenthesis or something
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
klimi
Mark
Hello
Anonymous
Hi
theStarkovv
Hello
klimi
@Occupato
Mat
#offtopic
Anonymous
Anonymous
klimi
Yez plzz
We should have global bans then
Anonymous
Vishnu
How change color of terminal 🤔
Anonymous
Hi
sv
Ya sure
Mihail
Shivam
Shivam
Lulz
Krithik Kumar
Thespartann
Ŧu尺kano
C++ is shit. Js is thr best programming language.
Dima
instant ban
Prometheus
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
Mihail
Dima
some innerworldy humor there
Dima
Shivam
Cool
Roxifλsz 🇱🇹
Making shit up about an OS in JS smh
Kuldeep
thanks
Roxifλsz 🇱🇹
Mihail
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