BinaryByter
BinaryByter
that is a good question
BinaryByter
but you CAN emulate rotations easily
olli
afaik RISC-v does not
klimi
Maxi did you have time hangs too?
BinaryByter
time hangs?
klimi
Change
klimi
*
BinaryByter
oh there was a time change?
klimi
Summer/winter
klimi
klimi
I guess there was because I get up early
klimi
Got it rokas
Anonymous
Which location,
Mihail
Anonymous
Klimi ask location
Anonymous
how to overcome from segmentation fault (core dumped)
BinaryByter
for example, when you have an array and you write/read one memory index too far from it's length
Anonymous
thanks
Anonymous
Anonymous
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main()
{
vector<int>v{};
int size;
// int *p=NULL;
// p=1;
cout<<"enter the size of vector";
cin>>size;
cout<<"enter the vector element"<<endl;
//int a[]={1,2,32,21,34};
for(int i=1; i<size; i++)
{
//v.push_back(i);
cin>>v[i];
}
cout<<"sort the vector"<<endl;
sort(v.begin(),v.end());
for(auto i=v.begin(); i!=v.end(); i++)
{
cout<<*i<<" ";
}
cout<<"\n reverse vector"<<endl;
reverse(v.begin(),v.end());
for(auto i=v.begin(); i!=v.end(); i++)
{
cout<<*i<<" ";
}
cout<<"\n max element ";
cout<<*max_element(v.begin(), v.end());
}
Anonymous
this is my code
BinaryByter
we won't read through your entire code
BinaryByter
MCVE required
BinaryByter
https://stackoverflow.com/help/mcve
Anonymous
can u plz tell me what wrong with my code
BinaryByter
BinaryByter
if you don't care enough about your own problems, we don't care aswell
Mihail
Anonymous
debug?
Mihail
That's like unreadable
BinaryByter
BinaryByter
debug?
don't tell him to use gdb, we both know that he's on windows using TurboC++
Anonymous
ok,🙂️I don't know,sorry
BinaryByter
xDDD it's fine ;)
Anonymous
What should I do in C language advanced?
BinaryByter
you can do anything
BinaryByter
but i'd REALLY advise you to upgrade to C++
BinaryByter
clinl.org/faq.html
Anonymous
c language pointer part is a bit difficult.
BinaryByter
need an explanation?
BinaryByter
fuck it, i'll do it
BinaryByter
So imagine you are selling houses
BinaryByter
you are having clients over
BinaryByter
you have two options
BinaryByter
either you show them pictures of the house
BinaryByter
or you tell them the house number + street of the house
Anonymous
yeah,You are right, I think I understand it.
BinaryByter
very good!
BinaryByter
now imagine that street+housenumber being your ram
BinaryByter
you can either have the object directly
BinaryByter
or you can have a POSITION to the obejct
BinaryByter
a pointer is nothing but a position of the object
Anonymous
i see,thank you
BinaryByter
nice!
Anonymous
😃️
Roxifλsz 🇱🇹
That was his first message since joining exactly a month ago, I think this warrants a ban
Roxifλsz 🇱🇹
/ban @rohitjain_25
Vishnu
👍😊
Anonymous
Hello all
Anonymous
Anybody know about this.?
Anonymous
Patch array antenna with gain enhancement using metametarial superstrate as antenna cover for 5g application
BinaryByter
wat?
Anonymous
wat?
Patch array antenna with gain enhancement using metametarial superstrate as antenna cover for 5g application?
BinaryByter
*tired*
Anonymous
I use gdb i got error program received signal SIGSEGV, segmentation fault in std::istream::operator»(int&)()
BinaryByter
do a
bt
BinaryByter
like
BinaryByter
in gdb, when it sigsevs,
bt <enter>
Anonymous
it come again in gdb prompt
BinaryByter
what does gdb tell you, when you bt?
Anonymous
yes
Anonymous
got it
Anonymous
thanks
Ludovic 'Archivist'
afaik RISC-v does not
That would be strange given how used they are for common ciphers
Ludovic 'Archivist'
afaik RISC-v does not
It should be in the bit manipulation extension which is not finished yet
Anonymous
Hi
Mark
o/