Home > Back-end >  For bosses to help me see the problem
For bosses to help me see the problem

Time:09-26

CodePudding user response:

There is no
 void main () 
this kind of writing,
Is
 int main () 

CodePudding user response:

reference 1st floor abcd7038 response:
 no void main () 
this kind of writing,
Is
 int main () 

When I programming this change come over, but can be the right way to output 3

CodePudding user response:

Fill in the blanks that are outrageous

CodePudding user response:

The handwriting... Can good scribble, format the first?

CodePudding user response:

There is a problem:

In general this is complete the application problem of preliminary examination paper, this problem must be given the title of the current program, as well as a brief problem solving methods,

If even write what all don't know, is that as long as you don't compiler error can literally fill in? (seems to be yes)

So, you will give us at least, what is this program implementation, rather than like upstairs or bloggers to pursue some compilers different problems that cause the main function of these details!

CodePudding user response:

reference 4 floor abcd7038 response:
handwriting... Can good scribble, format the first?
the teacher's words, with the

CodePudding user response:

reference 5 floor bifanwen reply:
there is a problem:

In general this is complete the application problem of preliminary examination paper, this problem must be given the title of the current program, as well as a brief problem solving methods,

If even write what all don't know, is that as long as you don't compiler error can literally fill in? (seems to be yes)

So, you will give us at least, what is this program implementation, rather than like upstairs or bloggers to pursue some compilers different problems that cause the main function of these details!
requirements at the end of the title have oh,, "requires the output is: 3," the teacher out the problem of defect is int into a void;

CodePudding user response:

 
The class Myclass {
Private:
Int * p;
Void the print ()
{
Cout<* p}
Public:
Myclass ()
{
P=nullptr.
}
Void the display ()
{
Cout<" 3 "& lt; }
};
Int main ()
{
Myclass a;
Myclass * pay=a;
Pay - & gt; The display ();
Pay=nullptr;
return 0;
}
  • Related