ばか
I’m don’t think it’s have any wrong
ばか
I++just plus after print
ばか
++I is plus before print
ばか
It’s simple
Anonymous
guys
Anonymous
Anonymous
why i get these errors???
Anonymous
/warn screen pic
Mar!o
/warn screen pic
Is code only allowed as real screenshots?
Mar!o
why i get these errors???
Well it speaks for itself produs type redefinition
Anonymous
Is code only allowed as real screenshots?
If it is a small code snippet, it is allowed here with formatting, otherwise it is better to prefer paste services (like paste.ubuntu.com) to screenshots
Mar!o
Okay ^^
꧁༒☬kim☬༒꧂
Guys how can i use association and dependency between classes to design a simple registration program..
꧁༒☬kim☬༒꧂
?
꧁༒☬kim☬༒꧂
What exactly do you mean by registration program?
A system that can be used in institutions ...i.e university
Mar!o
So you mean a list of persons who are registered in the university?
꧁༒☬kim☬༒꧂
So you mean a list of persons who are registered in the university?
Sort of a program than you can help you key in registration numbers of i.e students and their names..
Mar!o
Sort of a program than you can help you key in registration numbers of i.e students and their names..
Just use a map with an unique id as key for each student and a student class as value
Mar!o
You could also use their full name as key or generate one with a xorshift or mersenne twister generator
Ludovic 'Archivist'
Lol, never got that one xD
MᏫᎻᎯᎷᎷᎬᎠ
Lol, never got that one xD
It would be a compiler bug rather than actual error
MᏫᎻᎯᎷᎷᎬᎠ
If it's exist
Ludovic 'Archivist'
It would be a compiler bug rather than actual error
It would be pretty hard to have that in GCC given the way the AST is built, nor in Clang (as it is *kinda* similar)
klimi
Brre Hml: C++ Watermelon exercise... https://pastebin.com/rSiHBaJG
klimi
Sounds like homework
Corn
Dude no way
Dima
/ban $9.800 weekly for a permanent ban
n1coc4cola
/ban
Esha
/ban
Dima
why do you click these buttons like monkeys? come on
Esha
/ban
Dima
/ban
/warn abuse
Esha
Ok I am sorry
Esha
I m sorry Ms.Dima yushutin
Francisco
why do you click these buttons like monkeys? come on
There should be a rule that warns people if they abuse admin commands
Anonymous
I want to set f(x,y)=g(x,y)+g(-x,y) this equation 2D has to be symmetry. I don’t know how to write the loop for x and -x. Does anyone know how to write the loops for this equation?
Anonymous
C++
Anonymous
This is a equation
Anonymous
We can write for(i=0; i<2*n ; i++) this is for +x my problem is -x
SH
If x=i then is not -x=-i?
Anonymous
I think we need to set new index like newi depends on i
SH
For(i=0,j=0; i<2*n; i++,j--)
Anonymous
Oh
Anonymous
Is that working?
Anonymous
I mean i and j in same loop or we should separate them
MengShu
It is fine in same loop
Anonymous
Okay 👌🏻 thank you
Esha
Can I learn C after learning C++?? ??
Esha
How much time would it take me to learn C after I have learnt C++??
olli
How much time would it take me to learn C after I have learnt C++??
if you really know C++ you should be able to write decent C code as well
L0kzy
Can I learn C after learning C++?? ??
Learning C after C++ sounds strange 🤔
Esha
Really?
L0kzy
Really?
C is the foundation of C++
Esha
Yeah! I know that but still we can learn C++ first from scratch and then, C I think so.. 🤔🤔
ɱσσɳ
Really?
Object oriented C is C++
ɱσσɳ
Yeah! I know that but still we can learn C++ first from scratch and then, C I think so.. 🤔🤔
C++ can do everything then why you learning C, its purely procedural language
Esha
Ok I agree to both of you😊😊
ɱσσɳ
Ok
Joesph
The kernel you got that?
Joesph
There's a reason c is used in kernel
Joesph
C++ libraries sucks for OS
ɱσσɳ
There's a reason c is used in kernel
Oh i see.. thanks for info👍
ɱσσɳ
The kernel you got that?
coz it's lower level language than c++ right.. more depends on hardware
Esha
Ohkay.. Thanks to everyone🌟😊
Joesph
coz it's lower level language than c++ right.. more depends on hardware
That's not the whole reason C is faster when used for kernel than c++ and if used c++ it will slower + a long code
olli
That's not the whole reason C is faster when used for kernel than c++ and if used c++ it will slower + a long code
there are several kernels out there that make use of C++. Why should C be faster? Obviously C++ in kernel mode usually makes no use of RTTI and Exceptions
Dima
Dima
C is not faster, just C programmers are slower in understanding new ideas.
Or vice versa: it gives a freedom without any of nowadays hipster patterns
Ilya
Or vice versa: it gives a freedom without any of nowadays hipster patterns
Who is IT ? C or C++ ? C++ does give, yes, I agree
SH
I am not good. No one is bad.