There is the following code snippet: main.cpp

The first 83 people are derived normally, and then come the alien words. Tell me where the error in the code, and how to fix it?

Development environment CodeBlocks, MinGV

Strange characters

Closed due to the fact that off-topic participants αλεχολυτ , Abyx , aleksandr barakin , Harry , Cerbo 7 May '17 at 21:52 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • “Questions asking for help with debugging (“ why does this code not work? ”) Should include the desired behavior, a specific problem or error, and a minimum code for playing it right in the question . Questions without an explicit description of the problem are useless for other visitors. See How to create minimal, self-sufficient and reproducible example . " - αλεχολυτ, Abyx, aleksandr barakin, Harry, Cerbo
If the question can be reformulated according to the rules set out in the certificate , edit it .

  • one
    Most likely you read outside the structure. On this resource, all relevant information is taken to include in the question body, the link is extinguished and the question becomes useless. - vp_arth
  • The link is already broken. - 0xdb

1 answer 1

and where is return in the Abiturient * generateAbiturients() function?

You have here:

 Abiturient * abiturients = generateAbiturients(); 

it is not clear what is returned, and not a reference to the mass in which you expect.

  • Nothing has changed ( - Vasily Sokolenko