olli
istream*
BinaryByter
I advise you to 1) clean up your code 2) make your code as minimal as possible, remove extra features 3) look at where you access a vector or array
BinaryByter
istream*
SORRYYYYYYY :3c
BinaryByter
huh?
BinaryByter
no
BinaryByter
its a basic type implemented by the compiler
BinaryByter
rather
BinaryByter
its a bitfield of size 8 * 4
Anonymous
I want a code to populate a 2D array
olli
Don't rely on size of int, long and so on
olli
The size of a char is defined however
BinaryByter
Okay
BinaryByter
how is an int defined?
BinaryByter
BinaryByter
time to read
olli
There are five standard signed integer types : “signed char”, “short int”, “int”, “long int”, and “long long int”. In this list, each type provides at least as much storage as those preceding it in the list. [basic.fundamental#2]
BinaryByter
olli
you mean bytes?
BinaryByter
no
BinaryByter
bits
olli
well yes to bytes and bits
BinaryByter
I could have sc = 8b si = 8b i = 8b li = 8b lli = 8b
BinaryByter
would be compliant
olli
to have fixed size types use uint8_t, uint16_t and so on
BinaryByter
ok
olli
but do note, they are unfortunately marked as optional by the standard (in cstdint)
BinaryByter
Hoy you all
BinaryByter
WHY?
Yunus Emre
#include <stdio.h> #include <conio.h> #define BOYUT 10 int main () { int s[10], j, total; for (j=0;j<=9;j++){ printf("please one integer\n"); scanf("%d", s[j]); total += s[j]; } printf("total %d", total); getch(); return 0; }
Yunus Emre
What's wrong?
BinaryByter
klimi
kill me...
Yunus Emre
tell us!
Dude do you know what's question mark? if i know why bother to people
BinaryByter
kill me...
Noooo.. Klimi ❤️
BinaryByter
Dude do you know what's question mark? if i know why bother to people
Tell us what's wrong with your program and we'll help you
olli
WHY?
C++ does not define an architecture and it's impossible to allocate 32 Bits on a 36Bit architecture
klimi
IM FUCKING TRYING TO USE PYTHON3 INSTEAD OF BASED PYTHON whi h is 2... fuycking hell
BinaryByter
wat?
klimi
NO emacs is shit
BinaryByter
gerlang is better :)
klimi
i just
Yunus Emre
Tell us what's wrong with your program and we'll help you
I want to get numbers from user and write it to array and plus them
klimi
told 5x to it how to do it
klimi
and its doing fucking nothiong
Yunus Emre
what is your problem?
İt is not working. something wrong.
BinaryByter
what have you tried so far?
BinaryByter
Do you already think to know what's wrong?
BinaryByter
have you tried performing google searches?
BinaryByter
.
yea, yunus, watch that
Yunus Emre
Do you already think to know what's wrong?
No. I want to get numbers from user. Write that numbers to array, and plus them
Yunus Emre
have you tried performing google searches?
Google can't say me what's wrong in my codes and also can't give me advices like a good programmer.
olli
Thanks a lot
You're welcome. (You need to take the address you want to store the value at, to explain to change)
Ariana
If you’re trying something and it doesn’t work, try to isolate the error, try out a shorter program first, see if it works, then slowly add
Aman
Thanks a lot
Try to dry run your code. You will be able to prevent some errors in any program
BinaryByter
Thanks forget &
next time, double and triple check your code before asking
BinaryByter
I did thanks for needles sir.
well you FORGOT something, and according to you you knew that scanf needs them
BinaryByter
so that indicates that you didn't double check your code
Ariana
We should probably have a tutorial on how to debug code,
BinaryByter
Hi
Ariana
A lesson on debugging code is like needed for ppl who are new
BinaryByter
A lesson on debugging code is like needed for ppl who are new
for people who I don't want to bother me
Ariana
I also get questions irl like Hi hi i need to submit this in 5 minutes why doesn’t my code work
BinaryByter
Feel free to revert this, other admins :)
BinaryByter
klimi
i dont fucking care i have my own shitload of troubles