Nils
afaik you can't clear the console using only stdlib to work on all platforms
Escape chars on linux/bsd/mac, winapi stuff on windows
Nils
First one as it uses std::find
Emre
Hi
Jollybox.h
hello friends. I wanna ask a question. I searching for excellent,high quality,in logic math lessons. i think that mit calculus lessons. have i another alternative ? it can be a book
Mar!o
/report
klimi
Why?
Alex
yes
klimi
But why twice?
Liam
Yes, constructors could be overloaded as usual functions.
Alex
you use max as variable inside max function
Indolent
Yeah that's what I'm thinking
Alex
do not ask questions about assembly in groups about c/c++
Anonymous
I deleted that Q
Alex
I suppose this is not defined by standard. in fact, second p() call uses the same stack frame
Alex
what do you mean "deallocated"?
Alex
this is not heap, stack is just sp pointer which moves up or down
Alex
stack pointer in assembly x86
Alex
name of register
Alex
this is up to implementation too
Alex
for every stack variable sp is decreased, if you return from function sp get the address which it had before function call
Aaron Nevalinz
I am roughly going through a challenge here, I have downloaded a file (about 1.85GB) from a link that directs me to mega. Then right there on the web, using opera mini I managed to download the file, but then I can't find it in my standard downloads! So, where do files downloaded from mega go to?????
Aaron Nevalinz
Did you remember to save after downloading?
No I dint do that, I just went straight to my downloads folder, besides i didn't see any button the does the saving after download.
CyberRide
No I dint do that, I just went straight to my downloads folder, besides i didn't see any button the does the saving after download.
It won't work like that After downloading from mega you need to save before you can see it in your downloads folder
Aaron Nevalinz
It won't work like that After downloading from mega you need to save before you can see it in your downloads folder
Okay, how do you save it? Cause I don't see anything of sorts, like a save button maybe!
CyberRide
Wait let me get a link and send screenshot
Alex
new/malloc can give you same or different address. not defined by standard as I know
CyberRide
CyberRide
Cool!!!!
Sorry i made a mistake. I mean "open file" Before it save on your phone
Aaron Nevalinz
This is before, like a some point it asks open in browser or app, right?
Aaron Nevalinz
After opening you download either as zip, or a standard download. I did that, but then after the download, I can't find the files, like you click, huh????
INDIA
WAP in CPP to define a class Employee with data members name, EmpID, age, gender, sal and department. Define member functions to read and display employee information. Define a friend which can display the details of employee with given EmpID. Also define constructors ( any two) and destructor for the class. #include<iostream> using namespace std; class clerk; class Employee { string name,gender,dep; int empid,age,sal; public: friend void clerk::print(Employee); void read() { cout<<"\n enter name "; cin>>name; cout<<"\n enter empid "; cin>> empid; cout<<"\n enter age"; cin>>age; cout<<"\n enter gender "; cin>>gender; cout<<"\n enter salary "; cin>>sal; cout<<"\n enter department"; cin>>dep; } void show() { cout<<"\n the information of employee is:"; cout<<"\n name "<<name; cout<<"\n empid "<<empid; cout<<"\n age"<<age; cout<<"\n gender"<<gender; cout<<"\n salary"<<sal; cout<<"\n department"<<dep; } Employee() { cout<< "\n default constructer called"; } ~Employee() { cout<<"\n destructor called"; } }; class clerk::print(Employee emp) { cout<<"\n name "<<name; cout<<"\n age"<<age; cout<<"\n gender"<<gender; cout<<"\n salary"<<salary; cout<<"\n department"<<dep; }; int main() { Employee emp; emp.read(); emp.show(); clerk cl; cl.print(emp); }
INDIA
Can anyone plz tells me where I am wrong🙏🙏
CyberRide
Pls how can I declare publication date?
CyberRide
CyberRide
klimi
You will get warned
CyberRide
You will get warned
What have I done?
klimi
You posted photos ot screen
Aaron Nevalinz
Bro you need to download again
I have figured it out the app works best thanks man
klimi
Also it seems like assigment/exam something
CyberRide
You posted photos ot screen
I don't get you bro
CyberRide
Also it seems like assigment/exam something
Bro is assignment Am working on it . and I asked questions . So what wrong?
CyberRide
You can see the solution on top I asked a question not to solve
Anonymous
Wow
Death Killer
Is there any other way to write such conditions in compact way. while(i < nums.size() and j < nums.size())
Alex
while (max(i, j) < nums.size())
Anonymous
/get ide
Roxifλsz 🇱🇹
/warn screen photo
Roxifλsz 🇱🇹
Pls how can I declare publication date?
It seems that you're completely misunderstanding how structs work, I would urge you to read a tutorial about them
Renan
V01D
Depends
Anonymous
Renan
The fight never ends
You can code whatever you imagine in C, some things would just be easier in C++. Just like you could code anything in assembly, but a high level language would be better to write some things (because of human limitations).
Anonymous
+
??
V01D
Agreed
Anonymous
Which OS can u name that is written in C++
V01D
Yes, but C was specifically made for operating systems and compilers
V01D
C was invented back when general purpose programming languages weren't a thing. Back then each language was written for one thing specifically
V01D
Yes
Siddhant
Can anyone explain this?
V01D
Can anyone explain this?
Two loops to calculate sum
Siddhant
Two loops to calculate sum
Yaa I know the program but how to solve without using compiler/computer
Siddhant
Do it manually
For large no like 2^40? There might be some trick
Dark
Dima
eww furries
Dark
CyberRide
Pls I need help
CyberRide
You guys said I should not post photo on screen