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?
Advanced 2.1 Error C4716
-
- Posts: 4373
- Joined: February 28th, 2013, 3:23 am
- Location: Oklahoma, United States
Re: Advanced 2.1 Error C4716
Return a vector of vertices that make up the star.
You probably only forgot the return statement.
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
Re: Advanced 2.1 Error C4716
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.
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