It has been a while since i have taken C++ and I am tryig to write a program. The program is supposed to let the user input how many vertices the polygon will have, then let them put in the vertices, calculate the length of the sides, then use Heron's formula to determine the area. I know to start the program i should ask the user how many vertices the polygon will have, then i have to use a loop and arrays to enter the data. However i am not quite sure on how to begin writing this. Can anyone give me help on using loops with arrays?
JustinsCJ5 0 Newbie Poster
Dave Sinkula 2,398 long time no c Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.