Re: [algogeeks] Is a point inside a polygon?

2012-12-07 Thread shivendra singh
Point-In-Polygon Algorithm On Thu, Dec 6, 2012 at 3:54 AM, Don wrote: > Given a simple polygon (specified by a list of the vertices) and a > point, how do you determine if the point is inside the polygon? > > -- > > > --

Re: [algogeeks] string question

2012-11-15 Thread shivendra singh
#include int main() { char *str ="Algogeeks google"; char *str1 = "GROUP"; printf("str is %s",str); printf("\nstr is %s",str1); (char *)strcat(str1,str); printf("\nstr1 is %s",str1); return 0; } o/p: str is Algogeeks google str is GROUP str1 is GROUPAlgogeeks google sinc

Re: [algogeeks] string question

2012-11-15 Thread shivendra singh
But remember that if you are using CPP then its better to allocate sufficient memory to str1 , since you are copying str into str1. if str is very big string it might give a core dump since the possiblity of illegal memory access arises. On Thu, Nov 15, 2012 at 3:33 PM, shivendra singh wrote