Anonymous
sorry i don't know
Matteo
Hello i have need the of program that generd the fiscal code
𝗝ลѴỈ3𝚪Θ
Many thanks
MengShu
Ilya
i am just wondering what is a bus error 10
It's just another strange name for segmentation fault, that is, error in you program caused by bad address or similar
Ilya
so i need to change the variable name ?
Besides there is almost struct convention in all possible coding conventions not to name variables starting with upper case. Types can be anything, functions can be anything, but never ever name vars starting in upper case
Ilya
so i need to change the variable name ?
This pice of code is very big so you must debug it and find some particular place where it happens
klimi
Welcome
Anonymous
This pice of code is very big so you must debug it and find some particular place where it happens
Yea the piece I sent was from a larger program I am building . I made the mistake of building it in it entirely first without debugging along the way , so I been break each piece in isolated document and testing ,so far I am close to the end now .
Anonymous
Also going to change up the naming convention so it’s easier to read
Anonymous
This pice of code is very big so you must debug it and find some particular place where it happens
The app itself doesn’t do anything to exciting but I just trying to test the skills I learn so far in this book I am about 8 chapters in on this 13 chapter book
Anonymous
😅
Anonymous
Please help me find the error in this program?
Anonymous
omg maybe iostream.h
My friend then see the error that declaration syntax error
Anonymous
qwert
tell what the compiler is
Anonymous
Try iosstream.h
I will try but facing declaration syntax error
Dima
/warn Read the rules
Dima
Lol
qwert
could he take screenshot or copy ? 😅
Anonymous
What if using an OS where you can't screebshit
Anonymous
Screenshot*
Anonymous
Like MSDos
Anonymous
There are still people writing games for old OS's lol
Ludovic 'Archivist'
Like MSDos
Dunno, maybe if you want that old of a software you should buy an IBM laptop like an IBM 5100 and use the manual
Dima
What if using an OS where you can't screebshit
0) it’s an emulator 1) is screenshot software unavailable? lol
Dima
meh
Dima
these people nowadays
Dima
strange
Ludovic 'Archivist'
There are still people writing games for old OS's lol
There is this thing named an emulator, because nowadays, computers being about 40 thousand time faster you could emulate every transistor of that old of a hardware and still run your software smoothly
Anonymous
yea
01000001011011010100000101101110
Please help me find the error in this program?
This is turboc You'll need to use iostream.h And no namespace Instead use gcc
Giri
Input =5 Output ABCDBCA BCDCB CDC D
Dima
Input =5 Output ABCDBCA BCDCB CDC D
/warn Read the rules, please, come on
Giri
/warn
Giri
Please help me find the error in this program?
Use iostream.h instead of iostream
Ilya
Use iostream.h instead of iostream
He's disconnected, that DOS TCP stack, you know...
Dima
Sher
What's going on?
Dima
keep discussion on-topic
Sher
Ok
Sher
keep discussion on-topic
Oh you are admin of this group! But on my phone it is shown as Code warrior but on Pc as Admin. Don't know why.
Sher
Anyway I am not smart or show off guy. Just in case
Sher
Bye
Sher
No I am currently using the web version
Sher
Sher
I am on firefox 70.0.1
klimi
I am on firefox 70.0.1
that doesnt have to do with anything with it
klimi
just the web version doesnt support it
klimi
also its offtopic
Sher
If it hadn't for this bug I wouldn't have guessed that you are also admin
Ludovic 'Archivist'
Lol
I would like to propose something: to make a separate group for users of prestandardisation implementations of C++ so that turboC++ and Co are off-topic by default and to leave those people to their own predicaments
Dima
lol we can just send them to #ot
Ludovic 'Archivist'
lol we can just send them to #ot
Well then to be formal about it you could add to the pinned message C89 and C++98 and upwards only
Ludovic 'Archivist'
But I think that would be to be discussed by the admins in the admin chat
Xfglu
testing...
Anonymous
for(int i = 0; i < PrintableData.ArrayMemberTotal;i++){ free(PrintableData.DataType.stringArray[i]); } free(PrintableData.DataType.stringArray);
Anonymous
is this the proper way to free memory allocated for a array of strings
Anonymous
Anonymous
so you free each string first then the array itself afterwards
Anonymous
exactly!
i have gotten my program to compile and it mostly work , but under certain conditions it gets a Segmentation fault: 11 error, so i assuming it has something to do with memory
Anonymous
google say you get this when you trying to access memory that you cant
Dima
so?
Dima
still it’s not working lol
Anonymous
=3500== Invalid read of size 1 ==3500== at 0x4DB61A0: __strcmp_avx2 (in /usr/lib64/libc-2.30.so) ==3500== by 0x401239: alphabetical_Order (functions.c:23) ==3500== by 0x4C96FA4: msort_with_tmp.part.0 (in /usr/lib64/libc-2.30.so) ==3500== by 0x4C96E01: msort_with_tmp.part.0 (in /usr/lib64/libc-2.30.so) ==3500== by 0x4C97345: qsort_r (in /usr/lib64/libc-2.30.so) ==3500== by 0x4017D5: print_Array (functions.c:335) ==3500== by 0x401667: AllocatedArrayMemory (functions.c:260) ==3500== by 0x4014E7: make_String_Array (functions.c:199) ==3500== by 0x4013AE: create_Array (functions.c:114) ==3500== by 0x4011AE: main (main.c:13) ==3500== Address 0x4e2598000000000 is not stack'd, malloc'd or (recently) free'd ==3500== ==3500== ==3500== Process terminating with default action of signal 11 (SIGSEGV): dumping core ==3500== General Protection Fault ==3500== at 0x4DB61A0: __strcmp_avx2 (in /usr/lib64/libc-2.30.so) ==3500== by 0x401239: alphabetical_Order (functions.c:23) ==3500== by 0x4C96FA4: msort_with_tmp.part.0 (in /usr/lib64/libc-2.30.so) ==3500== by 0x4C96E01: msort_with_tmp.part.0 (in /usr/lib64/libc-2.30.so) ==3500== by 0x4C97345: qsort_r (in /usr/lib64/libc-2.30.so) ==3500== by 0x4017D5: print_Array (functions.c:335) ==3500== by 0x401667: AllocatedArrayMemory (functions.c:260) ==3500== by 0x4014E7: make_String_Array (functions.c:199) ==3500== by 0x4013AE: create_Array (functions.c:114) ==3500== by 0x4011AE: main (main.c:13) ==3500== ==3500== HEAP SUMMARY: ==3500== in use at exit: 87 bytes in 4 blocks ==3500== total heap usage: 6 allocs, 2 frees, 2,135 bytes allocated ==3500== ==3500== LEAK SUMMARY: ==3500== definitely lost: 0 bytes in 0 blocks ==3500== indirectly lost: 0 bytes in 0 blocks ==3500== possibly lost: 0 bytes in 0 blocks ==3500== still reachable: 87 bytes in 4 blocks ==3500== suppressed: 0 bytes in 0 blocks ==3500== Reachable blocks (those to which a pointer was found) are not shown. ==3500== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==3500== ==3500== For lists of detected and suppressed errors, rerun with: -s ==3500== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0) Segmentation fault (core dumped)