Anonymous
Nah, the only thing that rise like that was fuel
Not only fuel, when I eat a burger nowadays +200%
Ludovic 'Archivist'
Not only fuel, when I eat a burger nowadays +200%
You mean a mcdo is 30e in Germany?
Anonymous
Or when I eat any other food +200%
Daulet
Is gas not fuel?
In my country bensin prices is growing but gas prices not. Because in January we have protests about gas prices
Anonymous
You mean a mcdo is 30e in Germany?
The only thing that is constant is Chinese food
Ludovic 'Archivist'
Man, come across the French border, food didn't gain that much
Daulet
Ludovic 'Archivist'
Food stuffs gained maybe 1e for a pizza or a burger
Daulet
Man, come across the French border, food didn't gain that much
Putin said that Europe dies in hungry, and euro and dollar is just paper 🤣
Daulet
Lol, that is not the case
I know, funny that Putin knows about situation about Europe from own environment but not sees truth. Putin in informational isolation
Richard Luo 🐱
wait isn't it off topic?
Ludovic 'Archivist'
Ludovic 'Archivist'
BTW
Ludovic 'Archivist'
#ot
Anonymous
I was just practising using it
Data structures is a concept that is known by most people I've noticed...because they don't really know the importance of it... The few ones who really understand it are not willing to give it for free... I've gone through snippets of codes online about data structures...and I just know it's half baked... something is missing from it all...
Sleeves
hey guys
Sleeves
what will happen to an array if null character ‘\0’ is added in the middle of the array
Sleeves
whilst other values are presnt
Sleeves
will it nullify all other values in the array
Pavel
will it nullify all other values in the array
it will not nullify other values if you just change one element directly however, functions that work with c-strings will not consider everything after the '\0' character
Sleeves
also what value is present in an array at the time is is declared , say u declare an array. char s[10]; What values are present in there before you give values, im working up to figure out a way to clear an stack/array
Pavel
so it will work for most of my intended purposes but will be a waste of space
I don't know your purposes, but if you have shorter string you can use it this way. It will waste the space, but may be better then reallocating space for the new string
Sleeves
i see, in simple terms writing 0(zero) for all elements is the closest i’d come to clearing/ emptying a stack that has been initialized already ?
Ludovic 'Archivist'
also what value is present in an array at the time is is declared , say u declare an array. char s[10]; What values are present in there before you give values, im working up to figure out a way to clear an stack/array
I generally recommend people working with strings in C to work with things similar to TCL strings. I have an example of such strings here: https://git.nekoit.xyz/Archivist/mct20/raw/branch/master/generator/include/tstring.h https://git.nekoit.xyz/Archivist/mct20/raw/branch/master/generator/src/tstring.c Usage: https://git.nekoit.xyz/Archivist/mct20/raw/branch/master/generator/src/generator.c
Ludovic 'Archivist'
It is also the first "real" project I ask of C students
Unknown man
what will happen to an array if null character ‘\0’ is added in the middle of the array
If you make array of int then there will be zero stored in array and if you want to say string means you have made array of character then after zero no character will be stored
Anonymous
Which IDE for C++?
Anonymous
Vscodium?
Alfredo
Which IDE for C++?
It depends on your needs. I would recommend CLion, however for some kind of work VSCod{e,ium} would be enough.
Nothing
How can i get paid course for free like Beginning C++ Programming - From Beginner to Beyond
Nothing
Obviously it would help me a lot
▪️fateme👷🏻‍♀️
https://onlinegdb.com/Y1DzVO2f3 In this code using current in InsertAtTheMiddle() function the output is 65834 But when i put (*head_ref) instead of current in the specified function the output is 5834 Why 6 is deleted at the end using (*head_ref)???
Prakhar
I'm writing a code to create 2 arrays and then check conditions on those arrays. After i define the array, i have used a "for loop" for inputing the elements by user. But the compiler seems to skip the for loops and then go to the later part of the code. Any suggestions? How do i solve this problem? Ps : its a c++ code. Using : Mingw, Eclipse IDE
Peter
How can i get paid course for free like Beginning C++ Programming - From Beginner to Beyond
The cherno on youtube has a really really good c++ course... Highly recommend. It's not paid but he explains stuff quite well imo..
DaviChan
How can i get paid course for free like Beginning C++ Programming - From Beginner to Beyond
If you have a tight budget, no peoblem, there is plenty of good free resources out on youtube and other websites like learncpp.com, cppreference and many more. As previously mentioned I would also suggest The Chernos Playlist. The talks from cppconference are free on youtube also. Another great channel on youtube was "weekly C++" i think it was called. Its from one of the hosts of the cppcast podcast (Jason)
Greyyy
my code isn't compiling can anyone check and point out mistake?
Greyyy
https://www.godbolt.org/z/5v8jTbPMo
Greyyy
objective is to find first repeating element
Greyyy
index position
Anonymous
does thread::join() synchronously executes its function and thread::detach() asynchronously ?
Anonymous
why this code: #include<iostream> #include<thread> #include<mutex> bool finished = false; std::mutex mutex; void worker(){ mutex.lock(); std::cout << "[" << std::this_thread::get_id() << "] working" << std::endl; std::cout << "[" << std::this_thread::get_id() << "] finished" << std::endl; finished = true; mutex.unlock(); } int main(){ std::thread th(&worker); th.join(); th.join(); return 0; } returns [2] working [2] finished terminate called after throwing an instance of 'std::system_error' what(): Invalid argument [Done] exited with code=3 in 19.978 seconds
kamaraj
reg compilation process , file.i will represents the preproessed file
Anonymous
Anyone have a recommendation to a k&r for c site, which basically summarizes the chapters and main points, rather then reading each page one by one?
Anonymous
does thread::join() synchronously executes its function and thread::detach() asynchronously ?
Not exactly but to an extent yes. Join is a blocking call that blocks the thread that is calling it untill the thread on which it is called (the thread represented by the thread handle object on which you are calling join) finishes it's task. Detach on the other hand detaches a thread from its thread handle making the thread handle invalid. Both the calling thread and the thread represented by the thread handle on which detach is called now can run in parallel.
/
Help i have a question
/
in this function int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE, PWSTR pCmdLine, int nCmdShow) what is WINAPI after int for
Ludovic 'Archivist'
Anyone have a recommendation to a k&r for c site, which basically summarizes the chapters and main points, rather then reading each page one by one?
First of all, K&R is more of a historical read than something you should use for learning. You should probably use Jens Gudstens Modern C
Ludovic 'Archivist'
(Sorry Jens, I may have butchered you name)
Dinuka
What is the simple way to generate unique code from C++
Sleeves
Anyone have a recommendation to a k&r for c site, which basically summarizes the chapters and main points, rather then reading each page one by one?
I’m currently studying k&r and I think it’s a very good book. You should take time to read through the pages though a quicker method might be to give right into the exercises in each chapter and solve at least one exercise from each sub chapters
Ludovic 'Archivist'
I think K&R is very relevant especially to beginners
What? K&R is severely outdated and promotes methods that you do not want a beginner using.
Ludovic 'Archivist'
I’m currently studying k&r and I think it’s a very good book. You should take time to read through the pages though a quicker method might be to give right into the exercises in each chapter and solve at least one exercise from each sub chapters
Do you think I have spent the last 15 years without reading K&R? Like I said, it is a decent outlook at how programming was in the second part of the 80s, but not at all a good outlook at any form of modern programming or software engineering
Anonymous
Or how long would it take for someone to create something like Google alone ?
Ludovic 'Archivist'
How long would it take for someone that is really good with c++ to create an app like telegram?
Being good at C++ is the least of your problems here, being a math phd, a compsci phd, a decent infosec researcher, a specialist of distributed systems and a good designer at the same time as being a good C++ developer is the real problem
Anonymous
??
Nomid Íkorni-Sciurus
Or how long would it take for someone to create something like Google alone ?
Google is a combined effort of multiple disciplines and fields of study I think you're confused about what you want
Nomid Íkorni-Sciurus
C++ (like the other languages) is a tool to realize an idea but you have to have the idea first
Ludovic 'Archivist'
So you say it is impossible
Excellent question, theoretically no, in practice, possibly
Nomid Íkorni-Sciurus
Anonymous
for what?
Tell me what languages can do
Anonymous
And I might have an answer
Ludovic 'Archivist'
Tell me what languages can do
Do you plan to learn a single programming language?
Anonymous
Do you plan to learn a single programming language?
I would learn every if I could 😂
Ludovic 'Archivist'
I would learn every if I could 😂
Takes about 1 to 2 years to learn the first, then around 4 months to learn the next 14
Nomid Íkorni-Sciurus
I would learn every if I could 😂
I think you should really focus on what you want to do
Nomid Íkorni-Sciurus
you can't choose a random language and hope to realize Google with it
Nomid Íkorni-Sciurus
it just doesn't work like that
Anonymous
I think you should really focus on what you want to do
So tell me every language and their usecase
Anonymous
In simple words
Nomid Íkorni-Sciurus
So tell me every language and their usecase
there are so many you should tell us first your case