YVEF
Dima
why would you even need precompiled header
YVEF
try moving your header file into your sorgent file directory than removing the / at the start when you include it in the code
but what about another file, which already used like #include "pch.h" in this header directory?
YVEF
why would you even need precompiled header
to optimize compile time. but it's not a critical stuff. I just want to use it, and want to over come this problems...
Anonymous
Anonymous
Sorry I left in between of convo.
Tech Alchemist
Hlo can anybody please send me the code for the given output plz Humble request Enter s.no: 101 Enter s.name: xxx Enter mobile no: 98....... Enter address : Door no: 7.27/A Enter street : ........ Enter city : vsp
Tech Alchemist
Wht lol
Dima
This is so easy
Tech Alchemist
I am a beginner that's y
Francisco
Try it yourself and come back later if you have any problems
Arthur
calculator
it's in Bjarne Straustrup's book, very nice
Arthur
As a project to learn C++
Anonymous
/rules
Anonymous
Selassie
Who has a working sqli dumper
NXiss7
Std::arrays
It depends on use case. But you usually use vectors because of it's flexibility and such. But if you really sure that array's size is fixed and won't be changed later, you can use arrays.
Francisco
It depends on use case. But you usually use vectors because of it's flexibility and such. But if you really sure that array's size is fixed and won't be changed later, you can use arrays.
I'd say the opposite: use std::array unless you can't know the size at compile time, in which case you should use std::vector
NXiss7
I'd say the opposite: use std::array unless you can't know the size at compile time, in which case you should use std::vector
Of course. If he knows the size and is sure it won't change he should use array, otherwise vector.
NXiss7
I couldn't express myself, I think... 🤔
kaptan
hey guys , can we use AND (&&), OR (||) operators in "while ", for example : while(i==1 || k==1){ ... }
Dima
yes
klimi
Yes we can
Dima
why not
klimi
kaptan
thanks
Ajay
cplusplus says " Sets the first num bytes of the block of memory pointed by ptr to the specified value (interpreted as an unsigned char). "
Ajay
void * memset ( void * ptr, int value, size_t num ); So, I can't initialise any array with any value that I want other than 0.
Ajay
Is that right
Nils
How can I disable allocation and undefind behavior sanitisers?
Reversive
Hi
klimi
Hi
Hi
Reversive
Can you help me?
klimi
We dont heal corona here
Francisco
Reversive
i wanna know how i draw in console with c++
klimi
Good night....
Francisco
i wanna know how i draw in console with c++
What's your C++ knowledge?
Dima
What's your C++ knowledge?
I guess int main() { return 0; }
Anonymous
Hello
NXiss7
I guess int main() { return 0; }
😂😂😂😂😂😂
NXiss7
How can I disable allocation and undefind behavior sanitisers?
I'd try this: https://clang.llvm.org/docs/AddressSanitizer.html#suppressing-reports-in-external-libraries
NXiss7
That attribute probably recognized on gcc too.
Anonymous
Is this a ban?
Nandini
How do I do this in c++ I’m getting no where 3. Identify first character. Return the next location where that letter is found. Examples: "an entity above all" would give: "above all" "entre nosotros" would give: "e nosotros"
Anonymous
Hey I have a doubt regarding a question
Anonymous
Anonymous
Anonymous
Why is constructor of object B & A inside the class C is called first ? Why isn't constructor of C is called first?
Anonymous
What is the order of constructor call?
Noor
how to add default value in class function with separated headr and source?
Noor
void Hide(bool AOneLine = false); void Parser::Hide(bool AOneLine = false) { } iv tried this it's not working, and causes error.
Noor
but the values aren`t the same
it's typo, still the same
Gregory
it's typo, still the same
there is true in declaration, but false in definition
Gregory
+
Anonymous
Why is constructor of object B & A inside the class C is called first ? Why isn't constructor of C is called first?
because you might need a & b inside C constructor. How do you expect that compiler let you use a or b without calling their constructors?
Arthur
Why is constructor of object B & A inside the class C is called first ? Why isn't constructor of C is called first?
From my experience with C#, class members are initialized before constructor is called, I guess the same situation here
Noor
I got another error :!g++ Sources/Main.cpp Sources/Parser.h Sources/Parser.cpp && ./a.out -W Sources/Parser.h:1:9: warning: #pragma once in main file 1 | #pragma once
Gregory
But it is clearly pointed isnt it?
Gregory
Pragma in main. You have to delete it.
Gregory
Line 1
Dima
/ban 743096246 look at you, silly
Nils
Also how would I use it on gcc/g++?
Asad
hello everybody. i've watched a tutorial that teaches how to build a simple chatting program using winsock. but the problem is: the chat works only using that same computer. what i want to do is to build an application that enables two users with different computers to chat with each other. any ideas?