vinícius*
https://www.qt.io/download-qt-installer?hsCtaTracking=99d9dd4f-5681-48d2-b096-470725510d34%7C074ddad0-fdef-4e53-8aa8-5e8a876d6ab4
vinícius*
Downloading Qt (the framework) isn't necessary. You can just download Qt Creator (the IDE) if you want to
Konstantin
1. You cannot use WinForms from C++ 2. You can use Qt for making cross-platform desktop apps 3. You can use Windows UI framework for building desktop apps for Windows 10
WinForms - you cannot use "true c++", but mysterious C++/CLI allows to bridge true C++ with managed world. C++/CLI is not the best possible experience, but it does the job. If you want to build engineering tools with complex UI (content creation, visualization, debug tools, etc.), it might be good idea to take a look on ImgUI library
Dima
ewwww, c++/cli
Dima
Konstantin
C++/CLI is not C++
yep, that's why I have explicitly distinguished "true C++" and "mysterious C++/CLI" in my message
Andrew
I have a question : why doing string words[500000]; cause segmentation fault. While doing string *words = (string*)malloc(sizeof(string)*50000) works . What is the diffrence?
Andrew
I have a question : why doing string words[500000]; cause segmentation fault. While doing string *words = (string*)malloc(sizeof(string)*50000) works . What is the diffrence?
Why string words[500000] causes segmentation fault, while in the other way i successfullly populated istantiated and also populated a n array of 500k strings
Pavel
I have a question : why doing string words[500000]; cause segmentation fault. While doing string *words = (string*)malloc(sizeof(string)*50000) works . What is the diffrence?
I'm not sure 100% but afaik because malloc doesn't initialize the memory the OS can give big amounts of memory (even if you don't have that amount in reality). But strings actually initialize the memory so the real memory is being requested from OS and that failed. Try to null the malloced memory by hand (by memset) and see if it will segfault or not.
Pavel
I bet it will
Andrew
Works fine
Pavel
then I have no idea, but the case is interesting. ping me plz if you find out the reason
Andrew
Maybe @V01D_nullptr know the reason
vinícius*
There's a very limited amount of stack space in program memory, and you want to store a lot of stuff on it
vinícius*
When you use malloc, you're storing stuff in the heap, which is "unlimited" (limited only by the OS and hardware)
Andrew
Oh intresting thanks
Andrew
Why me?
You answered similar questions
Igor🇺🇦
Yes, but there is no one single standard way https://stackoverflow.com/questions/1825964/c-c-maximum-stack-size-of-program
Igor🇺🇦
No, it depends on OS and libraries used. Here, for example, default sizes for GCC on different OSs https://cs.nyu.edu/exact/core/doc/stackOverflow.txt
Igor🇺🇦
what about custom stacks,
What about them? What do you mean by "custom stacks"?
Naol
what if i use stack of my own instead of the standard library, is there a limitation.
Alex
how are you going to use you own stack for local vars? show code
Arvind
Hello, I am trying to use a custom header file in C++ but while including it says "multiple definition of vsnprintf". I tried this error on google, many solutions usually say to downgrade the mingw to some specific version, I haven't tried downgrading, but is there any other way other than downgrading my mingw??
Naol
inclose it inside #ifndef and #endif
Igor🇺🇦
what if i use stack of my own instead of the standard library, is there a limitation.
It seems that we're talking about different stacks. I'm talking about process stack https://en.wikipedia.org/wiki/Call_stack And seems that you're talking about https://en.wikipedia.org/wiki/Stack_(abstract_data_type). Otherwise I don't understand what you mean by "custom" , "own" stack
Sai
What is the difference between #include “stdio.h” and #include <stdio.h> ?
Bhaskar
google.com
bing.com
V01D
duck.com
V01D
Anonymous
searx.me
Anonymous
ya.ru
mbuf
Dogpile.com
V01D
4chan.org
Anonymous
Oh how did we forget yahoo
Harsh
Can I ask a thing about recursive functions in bash? I know it's C/C++ group but if anybody is experienced enough and willing to help?
Anonymous
duckduckgo.com
Already mentioned
Harsh
#ot
Engineer
Hi all
V01D
duckduckgo.com
We already had duckduckgo
Harsh
We already had duckduckgo
Realised latee :3
V01D
;)
Anonymous
ecosia.org
Andrey
Hello everyone, does anyone know why it asks just two times to enter the value of c? int c; for (int x = 1; x <= 4; x++) { if ((c = getchar()) != EOF) { putchar(c); printf("The value is %d\n", EOF); } } The output is: j jThe value is -1 The value is -1 k kThe value is -1 The value is -1
mbuf
Start with this first, int x = 0,instead of 1
Andrey
Start with this first, int x = 0,instead of 1
what is the difference in my case?🧐
Andrey
you are providing it 4 characters "j\nk\n"
but how to provide 4 characters without pressing the enter button?
Engineer
what is the difference in my case?🧐
Computers generally count from 0 to some value. For example 0 to 31 for 32 bits, 0 to 63 for 64 bits, 0 to 7 for 8 bits and 0 to 15 for 16 bits.
Anonymous
but how to provide 4 characters without pressing the enter button?
You can't. just discard the newline characters while ((c = getchar()) == '\n'); if (c != EOF) { ungetc(c, stdin); }
Anonymous
printf(... EOF)
Anonymous
You are always printing EOF
Anonymous
You are always printing EOF
Probably intentional
Andrey
printf(... EOF)
it is just an example from a book, what do you want from me?
Engineer
and how does it resolve my situation?
It won't but you'll get closer to understanding.
Engineer
and how does it resolve my situation?
Try to draw using pencil and paper/pen and paper the flow chart. It will really help you understand.
Black_J08
I've been coding in C and C++ for around 2 years till now...i've worked on small projects...but now I want to contribute to OS development...how should I proceed? Should I learn linux kernel development or driver development? How can I get into core OS development?
Anonymous
You can't. just discard the newline characters while ((c = getchar()) == '\n'); if (c != EOF) { ungetc(c, stdin); }
@andrewqa you can also use isgraph(c) instead of the == '\n' test to discard all non-printing characters
Andrey
Where this teacher come from?
Kernighan and Ritchie book :)
Engineer
Where this teacher come from?
Is it bad and against the rules?
Engineer
Anyone using the SystemC C++ class library?
Black_J08
And what you want to develop
I want to contribute to open source OS like ReactOS or HaikuOS