Advanced 2.1 Error C4716

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
aslanbey0158
Posts: 52
Joined: April 15th, 2017, 10:48 am

Advanced 2.1 Error C4716

Post by aslanbey0158 » July 5th, 2018, 9:27 pm

i use vs2015 cpp
i wrote all the codes like you gave.
But i get an error C4716 'Star::Make': must return a value.
What should i do?

albinopapa
Posts: 4373
Joined: February 28th, 2013, 3:23 am
Location: Oklahoma, United States

Re: Advanced 2.1 Error C4716

Post by albinopapa » July 6th, 2018, 2:34 am

Return a vector of vertices that make up the star.

You probably only forgot the return statement.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: Advanced 2.1 Error C4716

Post by chili » July 6th, 2018, 2:18 pm

Yeah it's tricky. I believe that when I originally coded that onscreen I left out the return statement and only added it later (you can see it later on in the video).

At this point though, you should be able to catch things like that on your own, or at least when the compiler alerts you to them. If you are doing monkey-see monkey-do copypasta here, you might be better served by taking a step back and working on the fundamentals. Not by copying but by exploring and challenging on your own.
Chili

Post Reply