Lecture 16

I am really badly struggling with session 16 there is a problem about the header position please don’t make fun of me i’m only 14…

Hello Matteo (@epicmabbo),

Welcome to the community, and don’t worry, no one makes fun of people here - it’s a friendly and supportive community :slight_smile:

I just want to check, which course was it you are having difficulty with? You have posted under the Unity Certification course, but I am wondering whether you perhaps meant the Unreal Developer course?

If you could let me know I can move the post for you and see if we can rustle you up some help. It would probably be best if you could explain the difficulty you are having a little further though, so people can work out how best to help you :slight_smile:

oh ok, mistake I am doing the unreal course and there is a problem with the 16th session
I am trying to write down the code for :

int main() 
{
    return *o;
}

and then there is an error under int because there was is no generated IntelliSensePCH-Data
I don’t really know what to do…

1 Like

that should be
{
return 0
}

no asterisk

1 Like

in this piece of code, you are declaring your main function with an integer return type, so the IDE will expect to see an integer returned. Instead you are returning *o, which is not an integer. In this case, the integer doesn’t really mean anything beyond the program letting the OS know if it closed properly. Standard practice dictates that you return a zero, like return 0;

1 Like