Ludovic 'Archivist'
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
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
Ludovic 'Archivist'
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
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
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'
It is also the first "real" project I ask of C students
Sleeves
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
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
Ludovic 'Archivist'
Anonymous
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'
Ludovic 'Archivist'
(Sorry Jens, I may have butchered you name)
Dinuka
What is the simple way to generate unique code from C++
Sleeves
Ludovic 'Archivist'
Anonymous
Anonymous
Or how long would it take for someone to create something like Google alone ?
Anonymous
Anonymous
??
Nomid Íkorni-Sciurus
C++ (like the other languages) is a tool to realize an idea
but you have to have the idea first
Anonymous
Nomid Íkorni-Sciurus
Anonymous
for what?
Tell me what languages can do
Anonymous
And I might have an answer
Anonymous
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
Anonymous
In simple words