Ziky
Shouldn't you assingn https://en.cppreference.com/w/cpp/io/basic_iostream to cin and cout?
nami
Is it possible to redirect input coming from some std::istream to some std::ostream?
Standard output and standard input are unix designs in unix they along with stderr are file descriptors. By using dup() system calls and piping them you can redirect them. I’m not sure if this is what you meant or not
nami
I think cin and cout are very different than stdin,stdout
Ziky
It looks cin an cout uses basic_stream to access stdin/out so this may be way to redirect cout to cin on apo level. But have no idea what is it good for
MᏫᎻᎯᎷᎷᎬᎠ
Standard output and standard input are unix designs in unix they along with stderr are file descriptors. By using dup() system calls and piping them you can redirect them. I’m not sure if this is what you meant or not
I don't think it's an issue related to stdout,stdin native descriptors and how they are designed It's from the standard library, since I'm only touching the std::streambuffer layer
Rose
Purge complete.
R_morarce
Hello friends, has someone made a game in c++, more specifically poker?
R_morarce
How to generate the board with colored chips.
Pavel
How to generate the board with colored chips.
I hope you understand that it is very difficult to answer such questions without knowing the full context of a problem. (also people usually can't read the minds of other people) For example, what do you mean by "generate" in your context? What format should they be in?
R_morarce
How to generate the board interface with chips for Omaha poker.
R_morarce
I've never made a game in c++, and I don't know what it would be like.
Dima
Hehe assignment
Paulo
Unreal engine use latest version of c++ it was c++ 20 at the last time I checked
Paulo
Yeah, but I'm talking about your library, some time I had problem with c++ version and macro expansion
Paulo
Do you had tried this? PublicDefinitions.Add("INTERNAL_EXPERIMENTAL=1");
Sarmat
Do you had tried this? PublicDefinitions.Add("INTERNAL_EXPERIMENTAL=1");
No, for this macros solution was to change #if to #ifdef
Aminos
it's to control an esp32, you use this code I suppose to control a camera and stream the result on a site, and at the same time on a TFT display
Chat Boss
Mritunjoy Roy sent a code, it has been re-uploaded as a file
𝕹𝖔𝖙𝖊 【注記】
guys anyone have the book named "Cracking the Coding Interview: 150 Programming Interview Questions and Solutions"
GJoe
There is some guy code, I have a problem with his cmakelists.txt, he uses in 292: find_package (Python COMPONENTS Interpreter Development) This code is supposed to work in ubuntu 22.04 which works with python 3.10, but there is an issue with -fpic in that version and the author workaround it using python 3.11 in github actions, there is no instrucction how to do it in a regular distro neither for windows. So my question is: How to specify a python version in cmake? My distro works in python 3.10, and another in conda in python 3.11, I want it in python 3.11. I already tried with no results: -Python_ROOT_DIR="path" -dpython_library="blablabla"
GJoe
This what he exactly said about the workaround in github actions
Rose
Purge complete.
John
auto format removed some of the "spaces" in my code, thus caused some kind of "undefined symbol" errors to the macro definitions
John
use editor with caution...
Manav
You can find list of all variables cmake's findPYTHON sets here: https://cmake.org/cmake/help/latest/module/FindPython.html#result-variables
levi
i want print new msg when the user press enter key
levi
Ziky
what is code or function for that
getchar and printf probably
levi
getchar and printf probably
Can you show me code
\Device\NUL
Can you show me code
There's already the clue
Rose
User .​ has 1/2 warnings; be careful! Reason: spam
levi
There's already the clue
i didnt understand im new learner
İmran
Hello, I will do Android programming with Xiaomi Redmi Note 9 Pro phone with Qt. Android 12 which emulator should I install. Thank you.
Rose
User Project has 1/2 warnings; be careful! Reason: homework spam
mohith
Course for c beginner
mohith
C course
Danya🔥
C course
This is a chat, not a search engine
Danya🔥
Really Ben ...
Is everything okay with you?
Oma
Hey hey
John
did you use parentheses in macros? That would resolve the problem
It was actually a very strange "bug"
John
1. #define P(args) ((args)) 2. void ListNew P((List*)); //function declaration 3. void ListNew (List* l){ // function implementation } after auto fomatting, the "function implementation" part became 4. void ListNew(List*){ // function implementation } the space between "ListNew" and "(List*)" was removed, and the compiler gave the error "expected ';' after top level declarator" my guess is that the compiler is considering "ListNew" as a variable name instead of a function name after I changed the function declaration to "void ListNew(List*)", the problem never happened
John
and one more thing, this is only a part of a open source project, if i compile this part independently, everything would be fine. If I run the entire makefile, the "expected ';' after top level declarator" will show up
Anna
:)
Michał
Hey ;)
\Device\NUL
pinned message
Ali
Hello
Ali
Is there a C extension
harmony5 🇺🇳 ⌤
Saul
Hey ;)
Hello
Manav
?
What extension are you talking about?
Manav
I hope you don't answer me with "i am talking about C extension" 🙃
Manav
C is it similar with C++
Bruh what are you talking about? c source file extension? a C extension (plugin) for an editor? anything else?
klimi
Ali
klimi
Which one
posix, gnu,... ?
klimi
I'm new in C I switched from Python
I fail to see how that is relevant
Ali
I fail to see how that is relevant
Should I keep doing python?
klimi
Should I keep doing python?
That depends on so many things that are unknown to me that i can provide only one answer: maybe
klimi
Its simple than C, that's why I like it
you mean that python is simpler than C? If you are talking about the C syntax, that is much simpler than python imho. It really depends on what you want to do, so you should choose for yourself what you want to do.
Ratul
Oo ok
Ratul
Fine
Manav
I'm new in C I switched from Python
Well, i wouldn't know exactly what you mean if you asked me "is there a python extension" as well.
Ratul
Yes