Hermann
And address sanitizer is not in the list
is this good gcc -g -fno-omit-frame-pointer -fsanitize=address file.c?
Hermann
but i dont use protector-all
Anonymous
Stack protector and fortify source are redundant with asan
Anonymous
And they sometimes outright break asan
Wisenky
so I have to use it like uni->fac[i].stud ?
Wisenky
cant I make it pointer ?
Anonymous
Hello guys
Wisenky
so the lines which is uni->fac[i].stud[i] will be uni->(fac+i)->(stud+i) ?
Anonymous
I need friend to help me in C++ 😐
Wisenky
https://hastebin.com/zoradihina.cpp but I used it in my old project and why it worked ? whats the difference btw adressing
Wisenky
okay I'll sir and I have to ask that the file which I sent you its linked .c file cant access uni->name and uni->facultyNum
MᏫᎻᎯᎷᎷᎬᎠ
Madhu should be promoted as an admin
Wisenky
advice me a pointer book sir
Wisenky
Anonymous
Wisenky
I ask question here whenever I cant find the answer on the internet or known websites
Anonymous
I ask question here whenever I cant find the answer on the internet or known websites
It's just that you're not understanding the difference between -> and .
Wisenky
It's just that you're not understanding the difference between -> and .
If you dont give a look on my question yeah you are right
Anonymous
If you dont give a look on my question yeah you are right
Well I saw it but what are you trying to achieve?
Anonymous
I'm too tired tbh
Wisenky
Well I saw it but what are you trying to achieve?
I try to allocate memory to the objects which are in nested struct
Anonymous
One advice I can give is don't cast the malloc() call
Anonymous
Let implicit casting do it for you, bad practice to use explicit in C
Anonymous
faculty->stud = malloc(sizeof(stud));
Wisenky
faculty->stud = malloc(sizeof(stud));
but I want more than 1 faculty
Anonymous
but I want more than 1 faculty
Then instantiate a new faculty?
Wisenky
Then instantiate a new faculty?
madhu has just answered this if you look at my question
Wisenky
Alright man
I got this like as 1 time allocating uni->faculty producted for how many faculties I want then I point it about uni->faculty[i]
Wisenky
Wisenky
sir , I dont understand this how to passing pointer to a pointer ?
Mar!o
MᏫᎻᎯᎷᎷᎬᎠ
Wat
Dima
bro?
Dima
i love when someone calls me sis
MᏫᎻᎯᎷᎷᎬᎠ
i love when someone calls me sis
Well Yeah my first impression was you are a girl
Dima
Mar!o
🤦🏻‍♂
MᏫᎻᎯᎷᎷᎬᎠ
maybe I am :P
No you are not
MᏫᎻᎯᎷᎷᎬᎠ
You are being privato
Dima
sir /blue_text_must_click
Mar!o
I mean why even say Sir...
Dima
if I only knew what it means..
Dima
what does it mean?
Dima
juicy ( ͡° ͜ʖ ͡°) ?
Mar!o
Wtf
Dima
sorry I just drank too much wine now
Dima
gotta be quiet
Dima
ot actually yes.
Ajay
shahad in hindi?
Mar!o
Mar!o
Hmm ok
Anonymous
Hey I need help with a c++ program
MᏫᎻᎯᎷᎷᎬᎠ
Well I will ask a direct question when there will be a direct answer Not just someone keep saying "why would you use X"!!
Anonymous
I neee to form a Round robin scheduling c++ program, list of processes with Process Id, Arrival Time, Burst time is given. A CIRCULAR linked list is to be used for the program in which each process is added as the time processes by and deleted as its time quantum expires.
cooper
is that your homework
cooper
i have a source to help you understand schedulers, but I don't know what the context of the program is, i.e. independent, part of a custom operating system (not xv6 clearly), or ?
cooper
http://pages.cs.wisc.edu/~remzi/OSTEP/cpu-sched.pdf
Anonymous
is that your homework
Yes its a part of my assignment
Anonymous
I completed with other scheduling algorithms successfully, but now I'm just fed up coding like 10 hours on a stretch 😅
Anonymous
Here's the original question
MᏫᎻᎯᎷᎷᎬᎠ
Anonymous
/report
Mawut
Hello guys, I came across an Object-Oriented programming based question. I have been trying to figure out which one to make the base and derived classes and I really got confused. Please give me a head up on how I can tackle the question.I don't need the code, just the frame Here is the question A car bazaar deals in various types of vehicles including cars, vans, buses, minibuses, trucks, pickups among others. A bazaar management program is required to keep track of these vehicles and the activities that happen to them. The bazaar also assigns employees to be responsible for the marketing, sales and maintenance as well as security services for these vehicles. Assume the bazaar operates within Nairobi and has at least three branches. Required: A design of the said program clearly outlining classes (base and derived) and their corresponding data members as well as any relationship between the classes. A program to: Keep track of which vehicle is in which branch at any particular time. Keep track of which employee is in which branch Which employee has worked on (marketed, sold or repaired) which vehicle. Using C++ and employing OOP concepts, implement the required program, clearly outlining how you have used the concepts of: Classes, Objects, Encapsulation, and Inheritance.
Mar!o
Naiko
if(strcmp(fdata->d_name,"..")==0) can anyone tell me what controls that if?
Mar!o
GOOGLE STRCNP WTF
Mar!o
Anonymous
GOOGLE STRCNP WTF
There is no need
Anonymous
Just use strstr
Mar!o