Mr.James
Unmute cmd
Anonymous
/warn no
Anonymous
Anonymous
other than profs who never read anything other than yashwant kanetkar and herbert schildt
Anonymous
conio.h is deprecated unsafe shit library
Anonymous
Anonymous
If you still use turboc you're supposed to check the output window
Anonymous
Not use bs like getchar()
Anonymous
Dude
Anonymous
You don't ask to ask, you'll never get support that way
Som
Any book recommendation for c++? Like basics and all stuffs
Anonymous
#reading-cdecl
Som
☺
Anonymous
Risho
j
Anonymous
!= k
Anonymous
++j
Ибраги́м
/ban no
Anonymous
Aaron Nevalinz
Guys I just got start on C++ today, looks promising.... 😊😊😊
particaney 🐸🍲
Francisco
someone?
Y use CTest and Catch2 for unit testing
Dexter
https://pastebin.com/mCCpuueE
Someone please explain me what is happening at line 7 of this code... Thank You.
Dexter
Anonymous
but i'm trying to find out how to write good tests, not how to use the tools
Francisco
I've never tried Jenkins, although I've tried Travis, which works quite well
Anonymous
oh. ye i need to learn how to write unit tests first. then how to have them automated on each commit/PR
Anonymous
thanks. any recommendations on book?
Anonymous
oh okay lol
Francisco
I'm trying to figure if this is a joke hahaha
Francisco
I don't usually use Amazon, didn't know there's reviews for CI/CD tools
Francisco
Oh, totally misunderstood
Nikita
Jenkins and Travis in my opinion quite harder to start, than gitlab. You can run your local gitlab server in docker and setup build/test tasks with couple lines of code.
Dexter
Thank You So Much.... much appreciated
Anonymous
Could you plz tell me how can i add incomplete method having double return type in csharp
Dima
~
Hi guys, I'm on a linux machine and I've attached a card reader. I couldn't find any software to manipulate raw data from this card, so I wanted to write a C program to do it, but I don't know where to find this device. The command pcsc_scan told me just Generic Smart Card Reader Interface [Smart Card Reader Interface] (20070818000000000) 00 00 How can I read data from this device? (There's no mounting point even if programs like cardpeek can access to it)
Sourabh
~
Sourabh
Thank you :)
Your welcome :) Share with us, how you finally managed it.
Som
Hermann
how copy uint32t value in my uint8 array?
Sourabh
It's easy you can do it
Alex
Hermann
i trying memcpy
Hermann
but how count byte for count?
Alex
Alex
also consider little/big endian
Alex
Alex
it gives you size in bytes of uint32
Alex
which you need to copy
Hermann
https://pastebin.com/cZz0yFLQ
Alex
memcpy(arrayu8+2, &(id), sizeof(uint32_t));
Alex
you copy from array to uint
Alex
also arrayu8 + 2 is third element, which is not initialised
Hermann
void *memcpy(void *dest, const void *src, size_t n);
Alex
hmm, sorry, my fault
Alex
si what is your current problem?
Hermann
i dont know really size_t n
Hermann
so, my for does not work
Alex
you should start with i = 2, not for (i = 0;
cause you copied to the second element in array
Hermann
?
Alex
for(int i=0; i<2+sizeof(uint32_t); i++){
printf("%02x ",arrayu8[i]);
}
Hermann
Alex
for(int i=2; i<2+sizeof(uint32_t); i++){
printf("%02x ",arrayu8[i]);
}
Hermann
Alex
ok, so what is your issue?
Hermann
if i start with i=2, i print arrayu8[0])?
Alex
write the code problem you provided please
Hermann
Alex
2+sizeof(uint32_t);