Hi albinopapa,
now I changed the constructors and it works fine. Thanks! But I don't understand why the constructors without ":" don't work. Thanks for your feedback about my codingstyle, too. It helps a lot.
misterchi
Search found 20 matches
- April 12th, 2017, 8:43 am
- Forum: Everything
- Topic: Fart-Annoyed: Dowallcollision doesn't work properly
- Replies: 4
- Views: 2607
- April 11th, 2017, 10:35 am
- Forum: Everything
- Topic: Fart-Annoyed: Dowallcollision doesn't work properly
- Replies: 4
- Views: 2607
Fart-Annoyed: Dowallcollision doesn't work properly
Hi,
the Ball doesn't bounce. I think it is because the GetRect function returns bullshit numbers. I added the program.
misterchi
the Ball doesn't bounce. I think it is because the GetRect function returns bullshit numbers. I added the program.
misterchi
- March 30th, 2017, 8:03 pm
- Forum: Everything
- Topic: Snekgame unresolved externals
- Replies: 19
- Views: 6975
Re: Snekgame unresolved externals
Cool, maybe it's a stupid question, but how does the computer know that when I write Location loc = {x,y}; I want the x to be stored in loc.x and not in loc.y or in any other variable?
misterchi
misterchi
- March 30th, 2017, 12:28 pm
- Forum: Everything
- Topic: Snekgame unresolved externals
- Replies: 19
- Views: 6975
Re: Snekgame unresolved externals
Tanks Albinopapa,I deleted the constructor for location. Now it works fine. But I still have a question:
I dont understand why this: "Location loc = { x,y };" works because how does Visual Studio know which variables I want to change in loc object?
I dont understand why this: "Location loc = { x,y };" works because how does Visual Studio know which variables I want to change in loc object?
- March 29th, 2017, 5:44 pm
- Forum: Everything
- Topic: Snekgame unresolved externals
- Replies: 19
- Views: 6975
Re: Snekgame unresolved externals
Hi Chili,
I added the snek. Thx!
I added the snek. Thx!
- March 28th, 2017, 5:18 pm
- Forum: Everything
- Topic: Snekgame unresolved externals
- Replies: 19
- Views: 6975
Re: Snekgame unresolved externals
Hi,
I added the code.
Thanks!
I added the code.
Thanks!
- March 28th, 2017, 3:19 pm
- Forum: Everything
- Topic: Snekgame unresolved externals
- Replies: 19
- Views: 6975
Re: Snekgame unresolved externals
No, I don't have that line. But when I add a constructor the red underline disappears. The odd thing is that I did it like Chili did and his program works.
- March 27th, 2017, 5:32 pm
- Forum: Everything
- Topic: Snekgame unresolved externals
- Replies: 19
- Views: 6975
Re: Snekgame unresolved externals
Hi,
it says: the default constructor of "Snake::Segment" cannot be referenced-- it is a deleted function
What should I do? I programmed the same like you did in the Tutorial 14a.
it says: the default constructor of "Snake::Segment" cannot be referenced-- it is a deleted function
What should I do? I programmed the same like you did in the Tutorial 14a.
- March 26th, 2017, 1:28 pm
- Forum: Everything
- Topic: Snekgame unresolved externals
- Replies: 19
- Views: 6975
Re: Snekgame unresolved externals
Ok.
Do you know why Visual Studio underlines the brace in the picture I added?
misterchi
Do you know why Visual Studio underlines the brace in the picture I added?
misterchi
- March 26th, 2017, 12:14 pm
- Forum: Everything
- Topic: Snekgame unresolved externals
- Replies: 19
- Views: 6975
Re: Snekgame unresolved externals
read it fast