klimi
Well I can just install other launcher
klimi
It's not
Krishna
Sure
How
Krishna
Sure
Can you guid me?
Ariana
guid
Ariana
just git gud
Krishna
Ok
klimi
or yes
klimi
but i dont want to
Talula
Should we generate the 2D&3D modelling software using only C&C++
Why God why? Why am I born in the country where 90% of the population doesn't even know what they are talking about?? 😭
Krishna
Ok
Talula
Mat
Why God why? Why am I born in the country where 90% of the population doesn't even know what they are talking about?? 😭
You're not the only one, trust me. A great percentage of human beings don't know what they do or talk about
Talula
Rose... why don't you click it and prove that you're a human... stop spamming 😝
Anonymous
How can I generate a random number between 2 numbers on c++?
Manisha Singh
Hey Rose in want to learn c programming from basic
Manisha Singh
What should I do?
Anonymous
ammmm
Anonymous
nope
swarnim
nope
Then please try it.
Mat
What should I do?
Try to learn the difference between a bot and a human probably is a good start
swarnim
It's awesome
Anonymous
Then please try it.
srry, I don't program cpp
swarnim
srry, I don't program cpp
How is using Google relevant to that?
Mat
srry, I don't program cpp
Why are you asking cpp questions without programming in cpp?
Mihail
for arduino
to program that you'll need to learn atleast some cpp
swarnim
nah
Well you could use some bindings
swarnim
But knowing basic C++ is best in my opinion
Mihail
Well you could use some bindings
when you learn syntaxis and the very basics then you just need to learn Arduino's library
Mihail
because you'll be doing most of stuff through that
Varun
/saved
Keijo
i have been stuck on this task for a while https://pastebin.com/m2S5Bjgq
Keijo
what the heck am i supposed to do here
Keijo
as far as i understand i am returning a pointer as requested or am i not
Roxifλsz 🇱🇹
what the heck am i supposed to do here
This line orginalSize = sizeof(*array); sets originalSize to the size of one int in bytes, you probably want it set to the size argument
Keijo
this is my main method (its given)
Keijo
https://pastebin.com/wSh0aik8
Roxifλsz 🇱🇹
this is my main method (its given)
This main method also has mistakes in it
Roxifλsz 🇱🇹
Keijo
i have not written it
Keijo
i just thought it would help you to understand what i am trying to do
Keijo
the target here is to add number to a list, reallocate and then return a pointer to the list
Keijo
any tips are more than welcome ❤️
Keijo
reallocate first
still getting this "array content incorrect after 1th add_to_array() call with value 61" as a test result
BinaryByter
Well... idk what you are doing
BinaryByter
NEED MORE CONTEXT
Keijo
NEED MORE CONTEXT
https://pastebin.com/m2S5Bjgq
Roxifλsz 🇱🇹
BinaryByter
https://pastebin.com/m2S5Bjgq
this is not the entire code
Roxifλsz 🇱🇹
I changed the entire program to this:
BinaryByter
I suggest you to start from scratch
Roxifλsz 🇱🇹
#include <stdio.h> #include <stdlib.h> int* add_to_array(int *array, int size, int newInt) { array = realloc(array, sizeof(int) * (size+1)); array[size]=newInt; return array; } int main(void) { int size = 0; int* array = NULL; for (int i = 0; i < 10; i++){ array = add_to_array(array, size++, i); } for (int i = 0; i < size; i++){ printf("%d\n", array[i]); } free(array); return 0; }
BinaryByter
but before you start from scratch,
BinaryByter
draw the process onto a sheet of paper
Keijo
thanks to everyone
Jakup
Hello
Anonymous
Hello
Hello
Jakup
how are you
Anonymous
Am good
Anonymous
Can anyone please tell me what's the difference between auto pointer and shared pointer
Anonymous
??
Anonymous
somebody have a book of graphics libraries in C++
Anonymous
i need it..
klimi
somebody have a book of graphics libraries in C++
Please don't make me do it I'm sad
Anonymous
jaja why??
Anonymous
The world will be proud of you