Anonymous
Lol
Anonymous
Is C or C++ good?
Start with C, there is nothing like best, both have different purposes.
Was removed
Which book is the best?
depends on the language you want to study
Anonymous
I don't know about languanges
Anonymous
I am beggining today
Anonymous
Beginning
Dima
if you won't care about memory stuff I'd recommend learning C#, it's sexy and awesome.. fast one, after you learn it you can come to c/c++
Was removed
Kindly start of with PASCAL and C...they are simpler
Dima
I am using .net core and it's awesome
Dima
crossplatform
Anonymous
I am going to learn simple programming
Dima
C# is simple in terms of usage
Dima
with all these interpreters and error checking you just cant make some
hyp3rbor3ax
hyp3rbor3ax
Can someone please help me with this compile-error?
hyp3rbor3ax
The files
hyp3rbor3ax
hyp3rbor3ax
Dima
hyperborea? td or history fans?
Dima
lol
Anonymous
you forgot to add you main file in g++ parameters
hyp3rbor3ax
I'm so dumb :D
hyp3rbor3ax
Thank you
Anonymous
g++ arrayshort.cpp TUT_7.cpp -o aufgabe02
hyp3rbor3ax
I read about hyperborea in a book by Nietzsche
Was removed
with all these interpreters and error checking you just cant make some
Yeah...the fact that its case sensitive sucks sometimes
many
Create a makefile and get all the jobs done
Anonymous
What is that?
Alignant
What is that?
I believe it is a header
hyp3rbor3ax
it is the header + the cpp file
Anonymous
What do you creare with this
hyp3rbor3ax
It sorts arrays
Alignant
The arraysort file is on the picture :D
Alignant
On the right side
hyp3rbor3ax
But it don't work correctly :(
hyp3rbor3ax
Why is float working and long not?
Alignant
And made in a bad taste if you ask me :D Does it really have to be a class?
hyp3rbor3ax
it's required for an exercise
Anonymous
How can I add people?
Anonymous
To this channel
Anonymous
Do you work with these in compiter or in phone?
hyp3rbor3ax
Why is float working and long not?
Can someone please help me with that?
Anonymous
Dima
perhaps comparesment issue
hyp3rbor3ax
I've posted the files above
Dima
yes
Anonymous
In my opinion all of you know programing very well
Dima
the issue is in comparesment
Anonymous
Am I right?
Dima
fixed
Dima
output for me is now 4 2 6 1 -1 6 2 4 1 -1
Dima
in compare do this (lol not so ok but ok) if ((T*)&a < (T*)&b) return -1; if ((T*)&a == (T*)&b) return 0; if ((T*)&a > (T*)&b) return 1;
Anonymous
What is comparesment?
Dima
comparing
Anonymous
Ok
Anonymous
I understand
hyp3rbor3ax
output for me is now 4 2 6 1 -1 6 2 4 1 -1
I copy pasted your changes, but my output looks different.
hyp3rbor3ax
Anonymous
You are getting the pointer direction?
Anonymous
Why are you comparing pointers?
hyp3rbor3ax
because it's an dynamic array
Anonymous
Yes, but why directions? You must not compare the content of the pointer?
hyp3rbor3ax
Look at the files
Anonymous
What are you going to create?
hyp3rbor3ax
sorted arrays
Dima
just dereference pointers (a b) to needed type and do a - b, why do you need that all?
hyp3rbor3ax
Hm?
Dima
btw I wouldnt use qsort in cpp code
hyp3rbor3ax
was an specification of the exercise...
Dima
rip
Dima
oh wait you are using long, nah it wont suit, sorry
Dima
overflow
hyp3rbor3ax
long and float
hyp3rbor3ax
float is also sorted wrong
Nikita
Prata C++ the best book