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
Anonymous
Anonymous
Anonymous
Anonymous
T* pointer = {any pointer value};
const auto pointer_address_before_incrementing = &pointer;
pointer++;
pointer_address_before_incrementing == &pointer; // true
That's an axiom
Anonymous
Ing.
Hello
Ing.
Please I need help
Vycon
Hey guys
Vycon
Vycon
Can I get this book please
Anonymous
Anonymous
Vycon
Anonymous
Anonymous
Dima
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
Hermann
Anonymous
klimi
What?
https://gmplib.org/
Anonymous
Anonymous
klimi
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
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
Nameful
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
Anonymous
Nameful
Aimbot?
It's from a presentation by a DICE employee
Anonymous
;)
Nameful
The class names aren't relevant here
Anonymous
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
Nyuke
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
yep, thanks
Anonymous
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
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
Artöm
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