Обсуждения
Podrían ayudarme con esto??
0 голосов
1 ответExplain it...
0 голосов
2 ответовPi calculation on Java
-2 голосов
1 ответ"Char" and "Double"
2 голосов
1 ответc++ float vs java float
2 голосов
2 ответовWhy Error?
0 голосов
1 ответWhat will be the output and why?
6 голосов
4 ответовDistance - c#
0 голосов
3 ответовPrime number
2 голосов
3 ответовWrite and test a program that solves quadratic equations. A
quadratic equation is an equation of the form ax2+ bx + c =0 ,where a,b and c are given coefficient and x is the unknown The coefficients are real number inputs ,so they should be declared of type float or double Since quadratic equations typically have two solutions ,use x1 and x2 for the solutions to be output These should be declared of type double to avoid inaccuracies from round-off error
-1 голос
3 ответов#include <iostream>
using namespace std;
class employee
int main()
{
private:
double salary;
public:
void getsalary(double sal)
{
salary=sal;
}
void display()
{
cout<<"the salary:"<<salary;
}
};
void main ()
{
employee programmer;
employee manager;
manager.getsalary (60000.0);
programmer.getsalary(40000.0);
manager.display();
programmer.display();
return 0;
}
1 голос
5 ответовWhat does "Double" mean in C++?
0 голосов
1 ответАктуальное сегодня
Functions in python
2 Votes
Html 5 document question
1 Votes
𝙵𝙸𝙽𝙳 𝚃𝙷𝙴 𝙸𝙽𝙿𝚄𝚃 𝙾𝙵 𝚃𝙷𝙴 𝙿𝚁𝙾𝙶𝚁𝙰𝙼
1 Votes
Is this realistic enough?
1 Votes
Python
0 Votes
Need friends
0 Votes
Python
0 Votes