No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
4 Posted Topics
> If you say that you dont know the size of the file, then you can use a linked list. get a data using fscanf(), insert it into your list when you find the position. continue until end of file. > > But if the file is very big, then …
[QUOTE=Prabakar;599939]Analytical geomentry, gives variousways to calculate distance. In this case, we can use sqrt( (x1- x2)*(x1-x2) + (y1- y2)*(y1-y2) )[/QUOTE] hey , Prabhakar's qoute is right. Let me elaborate this solution for you. I think to calculate nearest point, u should take following approach. Lets assume that you have 3 …
[QUOTE=kiwihaha;592095]i want to make a error check on each input. if i only got 1 input.. then i just use while(input==false) so it will continue ask user to input if he wrong input but if i have many input,then the while loop will complicated.. for example: Enter ur gender Enter …
[QUOTE=Narue;599944]>so it will take any number of character from 0 to max size until enter is not encountered Well, scanf doesn't recognize a newline, so you'll have to use some other method. A generally good one is to signal EOF when you're done by typing Ctrl+Z (Windows) or Ctrl+D (Unix/Linux), …
The End.
sacdpathade