Nils
Yeaaaahhh. 😅
Anonymous
see in BulkQuote you are using Quote::net_price() even though BulkQuote inherits from Discount. so if Quote, Discount, and BulkQuote are defined in separate headers, you need to look at Quote to write BulkQuote. this is why i asked whether it was a good design using using to make a small manpage of Quote inside Discount
Anonymous
ye you said that, but back then i didn't know about using to explicitly list base class members.
Nils
How do I create a dynamic array without a kernel?
Nils
All I can find uses kernel functions…
klimi
well you need somehow to manage memory... and thats what kernel does afaik
Anonymous
How do I create a dynamic array without a kernel?
https://github.com/Stichting-MINIX-Research-Foundation/minix/blob/master/lib/libc/stdlib/malloc.c idk how much this helps you
Asdew
https://osdev.org/ is a very useful resource.
Nils
I found a much better way now anyways 😉
Nils
(At least better for my fits)
Anonymous
> paragraph 1 oh > The way you are thinking of using declaration is actually an abuse. 😅 okay
Anonymous
thanks
MᏫᎻᎯᎷᎷᎬᎠ
No puzzles tonight?
Nils
Are char arrays filled with zeros by default?
MᏫᎻᎯᎷᎷᎬᎠ
Hahaha
Nils
Are char arrays filled with zeros by default?
I am trying to buffer stuff inside but it seems like I either did a buffer overflow or they have to be zero-filled first…
Nils
I am trying to buffer stuff inside but it seems like I either did a buffer overflow or they have to be zero-filled first…
https://hastebin.com/fohunosubo.c Probably you can see the fault. I initialised kb_buffer with: static char kb_buffer[KB_BUFFER_SIZE] = {0};
Nils
Yeahhhh I definitely have undefined behavior somewhere…
Anonymous
/report
Amogha KS
https://onlinegdb.com/BkkuPCoFL This is a program for binary search implementation. (I have found the right way doing it, but I faced a problem earlier for which I couldn't understand the reason) In this program, I have passed array of size 4 to another function by reference. I tried calculating arraysize inside the called function using "int size=sizeof(a)/sizeof(a[0]);" But using it gives me wrong output as the sizeof(a) has value 8 in called function. So I tried passing the size as well from the calling function. Here it worked. and sizeof(a) has value 16 in calling function which is correct & I get the required ouptut. What is the reason "sizeof(a)" is 8 in called funciton?? I observed at both the places, they ("cout<<a" ) have very same address as expected. But why do the sizeof(a) differ?? I think it because, the reference is passed & it holds address of only the first element,so the size remains 8 in called function in all the case. (And btw why is it 8) Can someone please explain what's actually happening.
Anonymous
Anonymous
How to print this Pattern in c or cpp
Pavel
How to print this Pattern in c or cpp
A loop for y coordinate and probably two loops inside. So for each line you need some amount of spaces (std::string have a constructor from two arguments to help with that), first inner loop for inserting the left part, one more string of spaces, and then the second inner loop for inserting the right part of the line
Anonymous
#include <iostream> #include <math.h> using namespace std; int main() { int i,j,t,n; cin>>n; for(i=-n+1;i<n;i++) { t=2*(n-1)-abs(i); for(j=-2*(n-1);j<2*n-1;j++) if(abs(i)+abs(j)>=n-1 && abs(i)+abs(j)<=t) cout<<abs(i)+abs(j)-n+2; else cout<<" "; cout<<endl; } return 0; }
Anonymous
I have done but i want another logic
Anonymous
Hello
Anonymous
Let’s programming
Anonymous
I’m good in C#
Brian
Hello guys
Brian
Anybody pls send me a source code of a running program written in C. Waiting....
Brian
int main() { return 0; }
Could you send pls
klimi
klimi
YK Y
Could you send pls
int main() { return 1; }
Brian
here you go
Thank you
klimi
Thank you
you're welcome
Brian
I wanted a program code of more than 1000 lines😭😭
Brian
alright
Can i have that. I neef to test whether a certain IDE over here is functional
Asdew
Try with the Linux kernel. You can find it on kernel.org.
Brian
Why? 😅
I am new to programming
YK Y
Wow
Anonymous
😂😂😂
Nikolay
😄
Anonymous
I am new to programming
Search "sample source code in C" on google.
Ciclonite
i've read the rules, can i past a link to pastebin?
Ciclonite
the bot have removed my post, reason external link
Ciclonite
Ok thanks a lot, sorry for disturb.
Dima
i've read the rules, can i past a link to pastebin?
Your message: “Hi guys, i have a problem with this code, when i call bhmac function valgrind crash. can someone help me? Thanks. https://pastebin.com/2CRvPxux”
Ciclonite
Your message: “Hi guys, i have a problem with this code, when i call bhmac function valgrind crash. can someone help me? Thanks. https://pastebin.com/2CRvPxux”
This have a link to a wrong pastebin, can i post the correct link? I think the bot have deleted my post because i've posted 2 link too fast
Anonymous
Who is a freak in programming ?
Anonymous
Reason
Anonymous
Console.WriteLine(„Tell me the reason“); Console.Readkey();
MᏫᎻᎯᎷᎷᎬᎠ
You could've just use comments
Nikk
/adminlist
lotuslwt
hello
Anonymous
What’s the passion of this group ?
lotuslwt
I get a segmentation fault, anyone tell me why?
lotuslwt
sorry, I can't send more messages or image...
lotuslwt
How to upload an image?
lotuslwt
I am newcomer😆
lotuslwt
this group so quiet
Asdew
I get a segmentation fault, anyone tell me why?
You accessed memory you shouldn't have.
lotuslwt
yes, I guess, too. but I have no idea to fix it.
lotuslwt
I want to show my source code, but I can't
lotuslwt
Anonymous
Is char *a[2] valid ? 😳
lotuslwt
not initialised is allowed