0

I have a main function and I want to call another function inside my main,
but it gives me an error like this:
error C2601: 'ComputeCentroid' : local function definitions are illegal

I know that this is an error because the '{' for my main is still not closed before my ComputeCentroid function. right?

How can I fix this ? I cant call thsi function outside my main.
If I do, my declarations and pipelines will be missed up!

Hope you can help me .
Thanks.

Jowana

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by WaltP
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.