Q&A Discussões
if i download the programs for c++ on my pc ( codebuilds and the compiler ) and i want to write a program in my package ( workspace ) i create a new file and write smthing beginning
#include <iostream>
using namespace std;
int main ()
{
...
}
and i want to run it, it always runs this first program : Hello World. and not my written program how can i run just my written program ?
have i maybe to write anything else as
int main () {} ?
0 Voto
16 RespostasWhat is timer in C#
1 Voto
1 RespostaI will like to ask this question, but I don't know if is beyond the scope of this learning. it's about Gethashcode (), Tostring () Gettype () etc. I will like a little enligthment. The definition and overriding in a class, though I have gotten some definition, but I will like if someone could throw more light on it's usage.
0 Voto
2 Respostas#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 Voto
5 RespostasWhy not working
-4 Votos
4 RespostasQuente hoje
Sticky position
3 Votes
Help please?
3 Votes
Ejercicio Pytho
0 Votes
Online voting system
2 Votes
What is that z for
0 Votes
Suggestions needed
4 Votes
SQL practice
2 Votes