Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Basking
  • Order by date
  1. Basking

    How do you copy a file into a 2-dimensional array?

    You shuld be more specific on this. Suppose if the file contains number like this, 1 2 3 4 5 6 You can use a loop like this. while( !feof(fileptr)) { fscanf(fileptr, "%d %d", &arr[i][0], &arr[i][1]); ++i; } I hope this helps. Cheers, Baskar baskar52@hotmail.com...
  2. Basking

    how to print html page without internet address appear in the page

    I guess you can just goto Page Setup of your Explorer or Navigator and remove the Headers and Footers. Hope this helps. Cheers, Baskar baskar52@hotmail.com http://www.geocities.com/baskar52
  3. Basking

    Image Analysis / Processing.

    Hi, I remember doing this as my lab exercise in Digital Image processing Lab. If you post your snip may be we can help you. Cheers, Baskar. Baskar baskar52@hotmail.com http://www.geocities.com/baskar52
  4. Basking

    Tricky C question?

    Hi, Same is applicable for functions also. void func1(); func1 and &func1 are both equal. Cheers, Baskar. Baskar baskar52@hotmail.com http://www.geocities.com/baskar52
  5. Basking

    Tricky C question?

    It will 1 Bcoz the ptr and ptr+0 doesnt make any difference. Baskar baskar52@hotmail.com http://www.geocities.com/baskar52
  6. Basking

    Tricky C question?

    Hi Lim, From the way you are asking, I guess the answer should be 4. Bcoz once you convert it to void type, it doesnt matter what is there inside. I mean the value doesnt matter too much. May be if type cast it into double once again, I guess the answer will be 2. Am i right ? Cheers, Baskar...
  7. Basking

    max value in array columns

    I hope the follwoing code helps you. int count; float max = 1.5; for ( j = 0; j < cols; j++) { count = 0; for ( i = 0; i < rows; i++) { if ( matrix[j] > max) { count += 1; printf(&quot; The maxtrix[%d,%d] value %d is greater than %f\n And count is %d\n, i,j,max,count); } }...
  8. Basking

    max value in array columns

    Hi Kjb, What exactly you want to be reported ? Do you want the array element to be printed ? If so try the below code. int count = 0; float max = 1.5; for ( i = 0; i < rows; i++) for ( j = 0; j < cols; j++) { if ( matrix[i][j] > max) { count += 1; printf(&quot; The maxtrix[%d,%d]...
  9. Basking

    Question: EOF on Standard Input : ???

    Hi anna,<br>&nbsp;&nbsp;In Windows environment, you can use char 255, i.e press alt and press 255 then leave alt key , press enter, this means that u have entered EOF in stdin. BTW make sure that NUM lock is turned off.<br><br>&nbsp;&nbsp;Hope this helps you.<br><br>Regards,<br>Baskar...
  10. Basking

    Question: EOF on Standard Input : ???

    Hi Anna,<br>&nbsp;&nbsp;I have a question, I dunno which platform you are working. If it is unix, you can use, ctrl D for specifying EOF and the above code will work perfectly.<br>&nbsp;&nbsp;If it is in windows platform. i think i need to check and come back to you.<br><br>Regards,<br>Baskar.
  11. Basking

    Struct in Struct : How to reference each member : & Allocate memory

    Hi Anna,<br>&nbsp;&nbsp;First of all I didnt get why you need to use a separate structure for storing words, instead of that you can simplify the tree structure by creating a structure like this.<br>&nbsp;&nbsp;struct treenode {<br>&nbsp;&nbsp;struct treenode *left, *right;<br>&nbsp;&nbsp;char...

Part and Inventory Search

Back
Top