Rose
Can any one help me
Don't ask meta questions. In other words, don't ask to ask. Questions like "Does anyone know XYZ?", "Has anyone used XYZ?" or "Can someone help me?" are all considered meta questions because they don't specify what your actual problem is. These questions give the impression that you want people to approach you and offer their help as if they don't have any other work to do. Now doesn't that expectation make you look like an idiot? If you have a question ask it directly. You are more likely to get a response that way.
Andrey
No such thing, don't use C++ for GUI
Why not? For example, Qt, you don't recommend to use it at all?
Danya🔥
Why not? For example, Qt, you don't recommend to use it at all?
No. For very simple GUIs I can tolerate ImGui.
Danya🔥
But C++ is horrible for UI stuff. I prefer Flutter
Artur
But C++ is horrible for UI stuff. I prefer Flutter
Why terrible ? 😅 If so maybe time to write a new declarative style guide framework ?
Kaka Getseman
I'm using mern stack for Dev , what uou guys think??
Rose
I'm using mern stack for Dev , what uou guys think??
User Kaka Getseman has 1/2 warnings; be careful! Reason: offtop
Danya🔥
What I've done
Wrote something that isn't related to C or C++
Danya🔥
Okay🤣🤣
What's funny about that?
Kaka Getseman
Rose
Nothing sorry
That's 2/2 warnings; Kaka Getseman is banned! Reasons: 1: offtop 2: pming
Riccardo
hello!, in this part of code there are some error? because the switch Always goes to default
Riccardo
switch(tp) { case 1: { v = V1; type = "la coca cola"; }
Riccardo
case 2: { v = V2; type = "il panino con il prosciutto"; } case 3: { v = V3; type = "la torta con frutta"; }
Riccardo
case 4: { v = V4; type = "la pizza"; } default: {std::cout<<"Questa selezione non \x8a valida!"<<std::endl;} }
Riccardo
right!, sorry
Emmanuel
#project
Thomas
Donr
Alx
Hey guys could you help me where can I practice my problem solving skills in C
Alx
I have exams on that
Omar
What do you need help with
Alx
I would like to practice my c skills
Omar
Seems like i cant send links here
Omar
just google "practice c"
John
try leetcode
Omar
try leetcode
Yes do that
𝔖𝔞𝔯𝔬
case 2: { v = V2; type = "il panino con il prosciutto"; } case 3: { v = V3; type = "la torta con frutta"; }
Non si vede che sei italiano propio no Use chat gpt for this kind of issues, way faster and easy, avoiding to wait for someone to answer. At least for syntax related problems, even if sometimes it is a good solution for logic related problems
ابن
/start@MissRose_bot
Rose
/start@MissRose_bot
Heya :) PM me if you have any questions on how to use me!
ابن
No I have no question now if when I have so I will ask
Riccardo
Non si vede che sei italiano propio no Use chat gpt for this kind of issues, way faster and easy, avoiding to wait for someone to answer. At least for syntax related problems, even if sometimes it is a good solution for logic related problems
Sorry i didn't notice it was a syntax error, I thought it was a logic error that I made inside the function. This community is for learning not for offending 😐. Maturity is the first rule and even c++ doesn't teach it
xhunter
Hi
KRISHNA
Hi
Hi
Ai
Hello programming leaner wanna learn something associated with Unreal Engine and Cpp dev
Rose
Purge complete.
Rose
Purge complete.
Chat Boss
ㅤ🏳️‍🌈GNU/Линуксяша-libre🏳️‍🌈 (";(" sent a code, it has been re-uploaded as a file
Richard Luo 🐱
Does deque provide better performance than vector in terms of insert at the back?
Pavel
Does deque provide better performance than vector in terms of insert at the back?
Depends, deque will allocate more times if you insert many elements compared to a vector. But a vector will move all existing elements once it needs to reallocate. So I assume that inserting at the end of a deque can be faster than at the end of a vector for types that are heavy to move or if there are really a lot of elements in the container. In other cases I assume that vector will be faster on average. You can try to measure this (e.g. with quickbench), to get more precise values, to see at which point one becomes faster than the other.
محمود
/get howtoask
Rose
/get howtoask
These are ways you can improve the odds of someone wanting to help you. Be considerate when posting questions. • Use a search engine to check if anyone else had the same question as yours before asking. Stackoverflow is your friend. • Be straight to the point (do not ask to ask.) • Be specific, include as many details as you can. • Show what you've tried to solve the problem • We don't care if anything is "urgent" or "important" - wait patiently for someone to reply. • In addition, please check this site to learn how to ask questions in a public forum. It's good style to limit the amount of messages you send to a public forum; put effort into 1 message, rather than sending many of them, and edit messages to fix errors or to include more information.
John
There are two ways to insert to the back of a vector: "emplace_back" and "push_back", "emplace_back" is usually considered to be faster because it constructs the element in-place. I am not sure if deque has a in-place method for "pushing".
Pavel
There are two ways to insert to the back of a vector: "emplace_back" and "push_back", "emplace_back" is usually considered to be faster because it constructs the element in-place. I am not sure if deque has a in-place method for "pushing".
It has emplace_back as well. Also emplace_back is faster only if the object is not already constructed (meaning that you provide the arguments to construct it and not an existing object of the same type), otherwise it will just invoke the same copy/move constructor as push_back would.
Anonymous
Have
Siddhanth
If we have a compiler and we get an error based on my algorithm and structure, then what to fix first cause it's a lot of mess
harmony5 🇺🇳 ⌤
#meta
Rose
Don't ask meta questions. In other words, don't ask to ask. Questions like "Does anyone know XYZ?", "Has anyone used XYZ?" or "Can someone help me?" are all considered meta questions because they don't specify what your actual problem is. These questions give the impression that you want people to approach you and offer their help as if they don't have any other work to do. Now doesn't that expectation make you look like an idiot? If you have a question ask it directly. You are more likely to get a response that way.
harmony5 🇺🇳 ⌤
harmony5 🇺🇳 ⌤
Yea
That's a runtime error. Learn to use a debugger
00
hello im trying to make a math tutor program to exercise and have some issues i want to make a case where it generate random equatio s=ns with operators
00
is it ok if i send my code?
00
its c++
00
im having trouble making it so basdically here is the menu i want from it 1] Addition only 2] Subtraction only 3] Multiplication only 4] Integer Division only 5] Real Division only 6] Modulo only 7] Addition and subtractions 8] Addition, subtraction and multiplication 9] Addition, subtraction, multiplication, and int division 10] All operators 11] End program i need help with 7-10 i did 1 to 6 but i want help to make 7-10 please
00
i hope i was able to properly describe the problem
00
if you choose 7 for example, then the program ask you how many questions you want and lets say you asked for 5, its suppsoe to generate 5 questions with either addition or substraction, but the operator for each question will be random between both
\Device\NUL
If random number is odd is addition, else subtraction
Maverick
can i ask something other than c++
Maverick
any good course for backend .
Rose
any good course for backend .
Offtopic discussions should be done in the C/C++ Offtopic group. Please take your discussion/questions there.
Leovan
Hi, why standard can't just stricly define that enum underlying type should be for example int? What is the point that compliers can choose which integer type to use under enum? This creates many ambiguous situations
Simple Sorcerer
any good course for backend .
I don't really understand this about you. But for my simple sites I use PHP
Simple Sorcerer
大宝剑
any good course for backend .
you could write your backend by C++
Sanchit
Hi I have query in c++ I have a double number suppose 1.45678384 i want that double takes only four digits after decimal number what is the methods
yz
how to set entire boolean array to have false value in declaration ? or the entire array is false by default ?
John
I thought "biset" was set to false by default.
yz
i dont understand, can you give code example pls ?
John
You can try "bitset<n> bs", and try to cout to see if the bits are set to 0
John
Also you can try vector<bool> v(n, false);