Anonymous
Is this possible
Anonymous
Anonymous
i heard functional programming, but i don't know what it is
Anonymous
Okay thanks , can you explain how this code will behave?
Nameful
Okay thanks , can you explain how this code will behave?
it tells the compiler that the memory which the variable ch represents may be edited by external sources at runtime
Nameful
in turn, the compiler refrains from doing optimisations that may optimise away the variable and its uses
Anonymous
i heard functional programming, but i don't know what it is
Same here , what is OOP. ? the reason I'm in this group is because I love C++ naturally , but I've never understood how to structure C++ programs except the basics
Anonymous
Thanks new byte for your explanation.
Anonymous
One more question, It's based on Embedded C perspective
Anonymous
what does actually happen when we declare a variable as static volatile unsigned char TMR0.
Anonymous
This is declared inside a header file. Why the combination of static and volatile keyword.
Anonymous
It's actually in the header file for PIC microcontroller, here the TMR0 is a timer zero register inside microcontroller. when we include this header file we can use this keyword.
Anonymous
static volatile unsigned char TMR0 @ 0x01; static volatile unsigned char PCL @ 0x02;
Anonymous
this is the real complete line at that file. Actually @ operator will write the value we given to the variable TMR0 inside the address 0x01 and same for PCL.
Nameful
the static keyword means that the variable can only be "seen" inside the file it is declared
Anonymous
But why these variables inside header file is declared as static volatile ...
Decoder_3d
guys
Decoder_3d
i got one problem
Decoder_3d
i got project of Student record system
Decoder_3d
and it executes in right way
Decoder_3d
but
Decoder_3d
it exports database file
Decoder_3d
if i want to check that dat file how can i open
Decoder_3d
it
Anonymous
the static keyword means that the variable can only be "seen" inside the file it is declared
That actually confuse me newbyte. I also read from several internet source about static. Here in this case we include this header file and use it in our main source file which is a separate file.
Decoder_3d
suitable software for that
Nameful
suitable software for that
dat file can be whatever really
Dima
Just check what it writes and read it that way.
Decoder_3d
i had opened it in notepad
Nameful
or anywhere else in your code
Decoder_3d
but it gets sysmbols
Nameful
except for that header and its implementations
Nameful
but it gets sysmbols
then it's probably binary
Dima
Find what it writes to this dat
Decoder_3d
ohk
Decoder_3d
Someone open this file
Dima
No
Dima
Can you read or what?
Dima
See what it writes
Decoder_3d
yeah
Decoder_3d
its not binary even
Mat
Someone open this file
You can't open a dat file with a file editor
Decoder_3d
then
Decoder_3d
which software
Mat
Find out how the file was written 🤷‍♂
Dima
What the fuck, can you simply view what your program writes to this file?
Decoder_3d
okay
Decoder_3d
ok sorry
Mihail
@kaletaa such "reminders" aren't allowed, especially without permission
Mihail
not to mention it had nothing to do with C/C++
Decoder_3d
ios:: binary
Elnee
!notes
Elnee
@roxifas how about to add this to notes? Maybe it's already added I'm sorry then. Too many to check. https://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list/388282#388282
Dede
#cbook
Elnee
lool
Elnee
So, I'm sorry 😅
Elnee
Oh, no, I'm not sorry. It's different links :D
void
Oh
void
Not this.. 🤔
Elnee
These links are almost equal but contain different questions, strange...
Elnee
!get freeprogrammingbooks
Elnee
This is it?
Roxifλsz 🇱🇹
^
Roxifλsz 🇱🇹
Very similar imo
Elnee
This question contains link to what I proposed. So who wants to find, will find :D
Zorrito
I would like to use my raspberry pi (DietPi) as a midi player. How do I send a signal to the audio port in the form of one number every 1/48000 seconds?
Anonymous
anyon can help me with this? here is the code for that specific error https://pastebin.com/QTashKMx
Pavel
anyon can help me with this? here is the code for that specific error https://pastebin.com/QTashKMx
The message says that you defined swimmingPool::poolSize twice. And looking at you code, you definitely defined it twice, which you shouldn't do
professor
is there a way to implement DGA into c++ in a easy way?
Francisco
anyon can help me with this? here is the code for that specific error https://pastebin.com/QTashKMx
The compiler is very clear, as Pavel said. And also, yep, the compiler is right
Anonymous
yup, I saw it, sorry my eyes are very tired didnt noticed that I doubled that
Anonymous
when I removed it, I encountered this one
Dima
anyon can help me with this? here is the code for that specific error https://pastebin.com/QTashKMx
your constructor should be void swimmingPool::swimmingPool(…) not swimmingPool::poolSize, that’s the duplicate