Anonymous
Is there anyone using c++ on the web
Artöm
I am not
Anonymous
Anonymous
I am not
Jk😅
Anonymous
Hey I am trying to make a program to maximize product of (a & b) *(c*b) a and c are given but b is not and b should be in range x and y? Can anyone help i am attaching the code tried so far
Anonymous
🎺🎺🥁🎹
The error is in your .exe file
The dev c++ didn't load
noop
#Question Anybody knows what is the purpose of using interpret_cast to cast HANDLE and get or pass it to GetCurrentProcess function in Windows?
Serenity
If I get a 2D array as an input for a function I'm trying to create, can I initialize the matrix with zeros inside the the function or does it have to be done outside ?
.
Any one need malware.c file
Asdew
...
Dima
LOL!
Dima
send it here
Dima
lol why it is so funny
.
This malware is not detected in window 10
Serenity
Thanks
Artöm
Did he send it?
Artöm
Anand
Any notes to understand function and pointers?
Anonymous
Yes sorry for typing mistakes
Anonymous
Thanx for responding https://pastebin.com/miVqFERH This is the link of my code
Anonymous
Yes I am working on method 2 right now as suggested by you but I can't understand this "Then you turn to 0 the the lowest positioned bit in a that is 1 in b. And now check if this new number is in the range x,y. If it is then compute the product and return the answer. If not you turn off the next 1 bit depending on whether that makes a less or c less.".
Anonymous
class Base { void memfcn(Base &b) { b = *this; } }; class Pub_Derv : public Base { void memfcn(Base &b) { b = *this; } }; class Priv_Derv : private Base { void memfcn(Base &b) { b = *this; } }; class Prot_Derv : protected Base { void memfcn(Base &b) { b = *this; } }; how does this compile without the member being declared virtual in Base?
Anonymous
Derived class can shadow methods of base class, with same or different signature
oh, so derived::memfcn() won't be available from a derived assigned to Base * or Base &
Artöm
Correct
Artöm
This is valid
Anonymous
Thanx a lot Now I get it I will try to implement it now
Artöm
It may be not what one want though
Anonymous
reading more
Chris Ashley
#include <conio.h> #include <cstdio> #include <iostream> #include <string.h> #include <cstdlib> using namespace std; static int d=0; class var { string busType, make, regNum; string ownerName, gender, billadd; string schedRep; int cont, addbus = 0; public: void addBus(); } newbus[5]; void var :: addBus() { cout << "1. Add New Bus "<<endl; cin >>addbus; if (addbus == 1) { cout << "\t Enter Owner Name: "; cin >>newbus[d].ownerName; cout<<" "<<endl; cout << "\t Enter Gender : "; cin >>newbus[d].gender; cout<<" "<<endl; cout << "\t Enter Billing Address: "; cin >> newbus[d].billadd; cout<<" "<<endl; cout << " \t Enter Bus Type(Seat Capacity): "; cin>>newbus[d].busType; cout<<" "<<endl; cout << " \t Enter Bus Make(Brand): "; cin >> newbus[d].make; cout<<" "<<endl; cout << " \t Enter Registration Number: "; cin >> newbus[d].regNum; cout<<" "<<endl; cout<< "\t Describe the problem of the bus: "; cin>>newbus[d].schedRep; cout<<"\t_______________________________________________"<<endl; cout<<"\t_______________________________________________"<<endl; cout << "\t Owner: " << ownerName << endl; cout << "\t Tel: " << cont << endl; cout << "\t Sex: " << gender << endl; cout << "\t Bus Type: " << busType << endl; cout << "\t Bus Make: " << make << endl; cout << "\t Registration Number: " << regNum << endl; cout << "\t Bus Fault: " << schedRep << endl; cout << "\t Billing Address"<< billadd; } else { cout << "please enter 1..." << endl; } } int main() { return 0; }
Dima
#include <conio.h> #include <cstdio> #include <iostream> #include <string.h> #include <cstdlib> using namespace std; static int d=0; class var { string busType, make, regNum; string ownerName, gender, billadd; string schedRep; int cont, addbus = 0; public: void addBus(); } newbus[5]; void var :: addBus() { cout << "1. Add New Bus "<<endl; cin >>addbus; if (addbus == 1) { cout << "\t Enter Owner Name: "; cin >>newbus[d].ownerName; cout<<" "<<endl; cout << "\t Enter Gender : "; cin >>newbus[d].gender; cout<<" "<<endl; cout << "\t Enter Billing Address: "; cin >> newbus[d].billadd; cout<<" "<<endl; cout << " \t Enter Bus Type(Seat Capacity): "; cin>>newbus[d].busType; cout<<" "<<endl; cout << " \t Enter Bus Make(Brand): "; cin >> newbus[d].make; cout<<" "<<endl; cout << " \t Enter Registration Number: "; cin >> newbus[d].regNum; cout<<" "<<endl; cout<< "\t Describe the problem of the bus: "; cin>>newbus[d].schedRep; cout<<"\t_______________________________________________"<<endl; cout<<"\t_______________________________________________"<<endl; cout << "\t Owner: " << ownerName << endl; cout << "\t Tel: " << cont << endl; cout << "\t Sex: " << gender << endl; cout << "\t Bus Type: " << busType << endl; cout << "\t Bus Make: " << make << endl; cout << "\t Registration Number: " << regNum << endl; cout << "\t Bus Fault: " << schedRep << endl; cout << "\t Billing Address"<< billadd; } else { cout << "please enter 1..." << endl; } } int main() { return 0; }
please format your code
Chris Ashley
Guys please I need a little help here.
Dima
or use pastebin
Chris Ashley
or use pastebin
I don't get it
Chris Ashley
I want to create an instance and I'm not getting it right. Been searching online but it's seems a little tricky for me.
P
it seems your class has no constructor
Chris Ashley
Alright. Thanks.
noop
Alright. Thanks.
It has been modified a little bit: https://pastebin.com/dMzGvqnL
Zildj1an
Hey guys, if you like the Linux kernel there is this other group you might enjoy as well @kernel_linux :)
Anonymous
is it admin approved post though?
Well I don't think so But let it be
Dima
yeah looks fine
Zildj1an
Nothing nocive about it 😁👍
Anmol
it seems your class has no constructor
Default constructor works fine
Mar!o
Hi
Mar!o
Good luck! You will need it 😄
Mar!o
What are the about?
Anonymous
You nickname says that you're Andrey Stop lying to us or yourself!
Patrick
I know this is more of a generic computing science problem, but I can't find a term for it. What's it called if there is a duplication of messages between two systems? Say if a user resubmits a form twice. I'm sure there's a term for it.
Anonymous
Heh ok
G
Someone knows how multiplexing works? I've seen several examples in C using select(), but still don't get it. The idea that I got is that is like working with several file descriptors but no idea how it's done.
Stanislav
Good day. I try to compile c++ project with OpenSSL (libcrypto.dylib) and WebRTC library. The problem is that WebRTC library depends on boringssl - OpenSSL fork. So their symbol are the same partially. I would like to remove boringssl symbol from WebRTC library to make the, not visible during the whole application linking process. Tryed strip -R strip.txt libwebrtc.a but with no luck. nm libwebrtc.a leaves unchanged.
Stanislav
Please, help me with strip command or suggest another solution
Anonymous
guys ive started reading the cprimer book , in the classes topic rn , it doesnt even tell how to add functions in the class header , and gives exercises on it :/
Anonymous
on the page 50 rn , why do even topics like classes get included? :c
Anonymous
i already know the basic syntax like classes /inheritance , i was just so confused :c that we could even use classes via headers
Anonymous
got too scared like i knew the overview stuff would frighten any beginner lul +_+ , thanks btw
@Chhotu
I need some pdf
Anonymous
@Chhotu
C++ operator program
@Chhotu
Or project s
Anonymous
I need some pdf
ive got the c++ primer book's pdf
@Chhotu
Which writter books
Anonymous
I need some pdf
if you just want a guide about a certain topic then just checkout geeksforgeeks site
@Chhotu
E balagusawmi like primer book
@Chhotu
I check
@Chhotu
Thanks