Dambe
why not just write something like this for(int i=0; i<3;++i){}
Anonymous
Modified, still no improved results
Dambe
why not just write something like this for(int i=0; i<3;++i){}
for(int i=0; i<3;++i){ print("%d", i); }
MᏫᎻᎯᎷᎷᎬᎠ
Why this doesn't work in theory: #define loop (;;) forloop//must be preprocessed for(;;), right?! It gives me a compiler error But I thought preprocessor replaces every macro with the text that's defined with. Does that mean preprocessor translate separated words and doesn't replace macros arbitrary?🤔 Or I just answered my question!!! Lol
Anonymous
/live_amex
Anonymous
Dambe
And the use it like LOOP{ // Statements }
MᏫᎻᎯᎷᎷᎬᎠ
Do this instead: #define LOOP for(;;)
I know But I just wanted to know how preprocessor works in more details
MᏫᎻᎯᎷᎷᎬᎠ
And the use it like LOOP{ // Statements }
That's what really cool about macros xD
MᏫᎻᎯᎷᎷᎬᎠ
like a brand new language
Dima
What the..
MᏫᎻᎯᎷᎷᎬᎠ
Yeah for x to y do
Dima
MᏫᎻᎯᎷᎷᎬᎠ
Party crassher :P
Dima
Nah, keep talking
MᏫᎻᎯᎷᎷᎬᎠ
We're done
klimi
I'm completely done..
Dima
I'm completely done..
reminds me the end of some movie..
klimi
Hm
klimi
We should ban some people to have exactly 7000 members
Dima
I can ban you 69 times
Anonymous
It's time to use random.org. give me a sec
Anonymous
we shall ban member number 897
Dima
Lol ban everyone from the specific ip (you know which one ( ͡° ͜ʖ ͡°)
Dima
we shall ban member number 897
Yeah now find out who is that one
Anonymous
well. He should do it himself
Anonymous
Number 897 where are you ?
Anonymous
let's give admin to everyone so they can ban themselves
Dima
that’s right, lets go to ot
Anonymous
I didn't mean to offtopic, It was more like shitposting (and that's allowed)
Dima
> how do I ban > man why won’t you help me > stack overflow > SIG_FAULT > I typed b/an and it didn’t work > help! this group is useless > teacher told me to do assignment > idk wats vrong help me pls *posts ban.c file*
Sasuke
Hlo
Sasuke
I have an question
Sasuke
If void type function doesn't returns everything so my main which is a void function return 0 when no errors?
olli
If void type function doesn't returns everything so my main which is a void function return 0 when no errors?
According to the ISO C and C++ standards main returns an int. Please do not use void main ().
S.
S.
olli
ISO C allows void main though ( while C++ don't
Can you cite the standard document please?
olli
ISO C allows void main though ( while C++ don't
C allows but does not define void main (only on phone so picture must do)
S.
Yep
olli
My point is the still the same though. void main is not standard and should imo be avoided
S.
Agree that better avoid void main 😏
Kumar Vipin
Where
It's name of book let us C++
Kumar Vipin
Agree that better avoid void main 😏
In system when a program or software is complete it work and about to complete it execution then is send a signal to system ( either a 0 or any other integer). If it give 0 then system will understand that the program or software is executed successfully and if it's any another integer then it gives a unsuccessful execution signal to the system. That's why we write return 0; Mean our program will give a successful execution signal if it execute without any error or issue. So int main, main is preferred over void main.
Kumar Vipin
You can try it if you are using Linux. Write a program with void main And run your program in terminal. After execution type echo $? this command will show the execution status of last command.
Kumar Vipin
You will get a integer.
Kumar Vipin
And if you execute same code with return 0. And run same command then it show 0.
Kumar Vipin
If it return 0 then termination status is successful
Kumar Vipin
Else it's any other integer
Anonymous
Ritik
Hey everyone
Aloknath
Hlw..buddy
itsmanjeet
link then staticaly
Sorry for the late reply I know how to it if source code of binary is available and recompile it using -static LDFlags But case is None source code is avaliable Only have One binary Shared library and static library Any way to relink it with static library
Anonymous
Can I ask questions related to python ?
aj
Hey guys what do literals mean in cpp
Anonymous
Literal have fixed value which can't be changed
Kumar Vipin
Anonymous
Yay I think
Kumar Vipin
Yay I think
You think right I just googled it 😁😁
Anonymous
klimi
Who gave you permission?
Kumar Vipin
Who gave you permission?
But this isn't in rules.
Kumar Vipin
I will delete it sorry I don't know about it