Asdew
Compile with -m64 -fPIC -pie
The address isn't the same between runs.
🐉
The address of i would not change because it's incrementing the value, but of what I've learnt pointers are pointing to addresses and incrementing them would change the address
Anonymous
The address of i would not change because it's incrementing the value, but of what I've learnt pointers are pointing to addresses and incrementing them would change the address
k now try this int arr[5]; // i know it's uninitalised, who cares for (auto iter = std::begin(arr); iter != std::end(arr); ++iter) { std::cout << &iter << ' ' << iter << ' ' << *iter << '\n'; } (can't do std::cout << iter on an std::list::iterator because as Danya said, iterators are not pointers. so the example uses an ordinary array)
Anonymous
T* pointer = {any pointer value}; const auto pointer_address_before_incrementing = &pointer; pointer++; pointer_address_before_incrementing == &pointer; // true That's an axiom
Ing.
Hello
Ing.
Please I need help
Anonymous
Please I need help
What you problem?
Vycon
Hey guys
Vycon
Vycon
Can I get this book please
Anonymous
Vycon
search in google
Help me with it
Vycon
ok
I will appreciate
Anonymous
Dima
Can I get this book please
Buy it. No piracy here
Dima
No, it’s c++ group
David
Hi there, do anybody knows how to disable WindowTitleBar (title, and navigation buttons panel) but not WindowBorder (that grants ability to resize window) I've tried to manipulate with SetWindowLong(), but only the GWL_STYLE, 0 implements that I want (somehow), it also disable WindowBorder, I don't want to code "new" resize events for undecorated window like i did in java, so is there a way to hide only WindowsTitleBar ?
A
/start@MissRose_bot
A
Hey
Yuval
Hey, what's up?
A
Anyone can send me personally let us c latest edition Pdf book plzz
Bhargav
/get cbook
Bhargav
/get ide
Nyuke
https://pastebin.com/P7LvS81P
Nyuke
i'm trying to rotate elements in a vector, when i get output in above case "2" is skipped and 1 and 3 are pushed behind.
Anonymous
/get clion
Anonymous
How to store large strings in c++ leike 10^6
Anonymous
Gmp?
What?
klimi
What?
https://gmplib.org/
klimi
Why?
asked what is gmp
Ayush
/settings
🐉
If there is an abstract class Shape, and 2 classes Rectangle and Triangle, deriving Shape, should the functions be always declared in Shape even if there is one member function that is used only by Rectangle and not by both?
Nils
Hi, wrote stuff with select(), but I am running into weird failures… Since I have no idea where the problem is, I'll send my entire code (it's not that much): https://hastebin.com/ujuhijexax.cpp The code exits with: accept: invalid argument in line 118 when connecting However when I remove line 145, it suddenly works as expected! Sometimes clients[x].recv_queue.size() (and other elements in the struct) causes that error, sometimes it doesn't. Same about adding other stuff affecting the clients map Any idea?
Dima
nice name lol
Nils
Even changing length of strings in code can either fix or get me the error back
Hello
Hello, i have list of vectors. list<vector<int>> l; i know there is no random access in list. But is there any way to randomly access elements of vector provided the list iterator(like l.begin()). I have googled. But they used a for loop to access within vector. Is there a way for random access
Hello
Can someone help me with this
Hello
Thanks, found (*(l.begin()))[0]
Nameful
Anyway
Nameful
Do you understand what they mean by that there's an icache miss here?
Nameful
(from these slides: https://neil3d.github.io/reading/assets/slides/Introduction_to_Data-Oriented_Design_2014DICE.pdf)
noop
i'm trying to rotate elements in a vector, when i get output in above case "2" is skipped and 1 and 3 are pushed behind.
First, the element in the index 0, which is 1, is erased: vect: 2, 3, 4, 5, 6, 7 Next time, the element in index 1, which is 3, gets erased: vect: 2, 4, 5, 6, 7
Nameful
Aimbot?
It's from a presentation by a DICE employee
Anonymous
;)
Nameful
The class names aren't relevant here
Nameful
It's about Data-Oriented Design
Nameful
Game company?
Yeah, they're the developers of the Battlefield series (for example)
Anonymous
Aaaa
Anonymous
Ok
Dima
is it me or api.telegram just got offline?
Anonymous
/get ide
Emir
if(secim == 1){ fseek(dosya1, 0, SEEK_SET); while(!feof(dosya1)){ char ch; fscanf(dosya1, "%c", &ch); //fseek(dosya1, -1, SEEK_CUR); fprintf(dosya1, "%c", ch + 17); } } Why is that code infinite loop?
Emir
fscanf +1 fseek -1 fprintf +1 why?
Ravi
Bro anyone can help me to programming this patteren please
Ravi
Anyone
jason
A1978751583_23320_31_2020_Assignment.pdf
jason
Someone's is knowledgeable about *C++* ? I have basic assignment questions to solve but since I'm unaware about the subject. Can anyone solve them for me? I can *pay* for your work. Ques Set is 1. 🙏🙏🙏🙏
Anonymous
is it me or api.telegram just got offline?
Telegram itself got offline for a while
E
Is there anyone who is good at C
Asdew
There are many people who are good at C, maybe here, maybe not.
Stephen
/programming
Anonymous
pls how do I get GUI for my calculator
Hello
I read Non static member initialization is introduced in c++11 which allows to initialize directly like class A{ int data{1}; }; So was this an error to use class A{ int data =1; }; Before c++11? Are both codes refer the same feature introduced in c++11