Rejwana
Like RGGRRG then output Is Y. Like Red+blue=Purpule, red+green=yellow,blue+green=cyan only using first word
Rejwana
Using stack
Rejwana
T number cases, n number of colors in the box, n charecter(R,G,B)
Rejwana
Like 2 (test case) 3 RBG 4 RGBB output is PG. Y
Rejwana
If two same type of colors mix up they will vanish each other. For example, if two purple colors get together both of them will be vanished
Rejwana
How to solve it? Can anyone help me if can
Rejwana
Red blue green first word
Rejwana
Like string or char
Rejwana
How to implement with stack in c++
Rejwana
Like R+B=p and push into stack,if matching then pop
Rejwana
Like RGBB output is Y. Red+green=yellow/ / R+G=Y
Rejwana
For example purple colors get together both of them ar vanished
Rejwana
There are three colors Red green blue, red+blue=purple Red+Green=Yellow Blue+Green=Cyan. And there are some others problem, if If two colors mix up,they will vanish each other,For example purple colors get together both of them will be vanished
Rejwana
Can you help the magician to get the final colors that will be in the box
Rejwana
Input : first Contain T, test case. Second contain N, number of colors in the box thirs contain N character (R,G,B) first capital letter of the color
Rejwana
Like 2 (test case) 3 RBG 4 RGBB output PG Y
Rejwana
How to solve this problem with stack?
Rejwana
In c++
Rejwana
Like if I input string how to compare & push in stack? How to print?
Dark
Im having a problem understanding the Windows GUI. Because I don't understand how i can create a window and add buttons and text to it. Is they like a xml file or some tool that can help me make a nice gui without WinForms from the .net library
Sorry if that sounds stupid im still learning. But I just want to learn to make GUI applications instead of CLI ones
klimi
\Device\NUL
\Device\NUL
Guillermo
Guillermo
Yo have to call the Win32 API. Look at the msdn, there are a lot of examples
Guillermo
WM_PAINT message (Winuser.h) - Win32 apps | Microsoft Learn
https://learn.microsoft.com/en-us/windows/win32/gdi/wm-paint
Guillermo
Look at here
Dark
Guillermo
There are a lot of examples about using the WIN32 API
Dark
But is they not like a designer like the Dialog UI?
Guillermo
Well, there is a designer
Guillermo
But You will have to find It yourself cause I'm not at home and I can't guide you right now. Sorry
Guillermo
Maybe you could look for Win32 designer or something like that
Guillermo
First steps in UI
https://zetcode.com/gui/winapi/firststeps/
Guillermo
Look at here to see how yo use the designer
Dark
Ow ok thank you
Dark
I did look up designer but they are for MFC applications
Chat Boss
Tazin sent a code, it has been re-uploaded as a file
Tazin
can anyone tell me why this code doesn't pass the test cases where it's supposed to be yes ?
Tazin
It works with stl fine but here I'm not allowed to use stl. But I can't find what did i do wrong while making the function
Alexander
Tazin
Ohhh thankssss ❤️❤️
€Fr€dd
Cheat
Ибраги́м
https://github.com/eliaskosunen/scnlib
Ибраги́м
#include <scn/scn.h>
#include <cstdio>
int main() {
int i;
// Read an integer from stdin
// with an accompanying message
scn::prompt("What's your favorite number? ", "{}", i);
printf("Oh, cool, %d!", i);
}
Sami
how to print * pattern in for loop
Than
What is the best way to start learning program c
Anonymous
Than
post
is there any game server backend developer? I entered a game company as a backend developer,but the actual work is write lua at most of the time
post
The company's cpp server code does not change frequently, so I can't touch the code core of the cpp high-concurrency server at all. Does writing lua have a career development prospect?
Anonymous
Can someone write a code for me *Pattern using for loop
Using c++.
Anonymous
@𝑺𝒐𝒃𝒌𝒂
Anonymous
@𝑺𝒐𝒃𝒌𝒂
Yes
So, why asking someone to write code for you
Anonymous
Anonymous
There for i want solution
@𝑺𝒐𝒃𝒌𝒂
Denys
Hi. Could anybody tell: is it possible to draw over text in existing pdf file using qt and it's abilities for working with pdf? May be some of you had a deal with that issue. I'm just desparately trying to ask everybody cause my attempts is failed many times :(
Denys
I mean it looks like qt can only create new pdf files when using QPainter
GOPA
I am working on a project in c++ ,it requires pdf manipulation,can anyone suggest a library for the same,it should be fast,well documented and a lot of features in it
Carlo
how do I know the size of the first dimension of this array?
int R[][2]
Carlo
is there any function to calculate that
itsmanjeet
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2771r0.html
𝔖𝔞𝔯𝔬
𝔖𝔞𝔯𝔬
When you make an array that way, you will have to specify the first dimension by number, or the compiler will do it for you from what you assign to that array
A.m.h
hi eveyone
A.m.h
i have a problem with c
A.m.h
++
klimi
Danya🔥