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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by ssingh

  1. ssingh

    beginner-a confusing while loop, for me

    I would advise you to make do { } while() ; loop (ie, bottom tested loop) . Because at least once you want the user to input the data. Otherwise you will have to initialize the variable to enter the loop. For e.g, do { puts("Enter sqaure value 1-3\n"); scanf("%d&quot...
  2. ssingh

    how do i compare the words in the f

    This is a typical problem in bank where the records from trasaction file is compared with master files . If your file is too large. Sort the second file first . Then pick one word from first file and make a binary search on the second file. This is the best way to do it in my opinion...
  3. ssingh

    How do C access Oracle ?

    Go for Pro*C. Siddhartha Singh Siddhartha Singh siddhu_singh@hotmail.com siddhu.freehosting.net
  4. ssingh

    Database connection using C

    c1, There is something called Pro*C . You write your logic in C and whereever you want to access the Oracle database . You need to put your SQL Commands. After that you need to pass this file to a proc.mk (make file provided by Oracle for that system). It will generate a proper C file ...
  5. ssingh

    array of random #'s

    Why do you need int ***array. You can do with **array for 2-D array. Also , if you have already passed the array which has been allocated sufficient memory . Then the function of gerald will do . But if you need to allocate memory inside the function itself . Then just modify the function as...
  6. ssingh

    multiplying large numbers uding linked lists

    The answer you will get in any good data structure and algorithm book as Multiplication of Polynomials using Linked list. Because it becomes a polynomial if you use integers bigger than the int data type's capacity. Thanks Siddhartha Singh <p>Siddhartha Singh<br><a...
  7. ssingh

    Dynamic memory allocation problem!

    Hi , rbobbitt you were right for the first time . The actual usage of malloc for char* p is p = (char*) malloc(sizeof(char)); and not sizeof(char*). It is required when you want to create memory for 2 dimension array of POINTERS. For eg, char **p; p = (char**) malloc(sizeof(char*) *...
  8. ssingh

    who can I find a integer string in a longer string?

    I think sidalla's problem is to : 1) find if there is any integer in the given string. 2) If yes then convert it to integer value: If I am right then, Do this way. 1) Scan the string for integer's Ascii value (ie, 0-9). If found then find how big is the integer. If it can fit into the...
  9. ssingh

    sparsematrix

    Tell me the exact question... <p>Siddhartha Singh<br><a href=mailto:siddhu_singh@hotmail.com>siddhu_singh@hotmail.com</a><br><a href=siddhu.freehosting.net> </a><br>
  10. ssingh

    Cross compiler

    Search in Google site. <p>Siddhartha Singh<br><a href=mailto:siddhu_singh@hotmail.com>siddhu_singh@hotmail.com</a><br><a href=siddhu.freehosting.net> </a><br>
  11. ssingh

    File open

    I think you need to improve the rpet's code little bit. Since you want to replace the ';' with ','. And when you already read a character the cursor is on the next character. Therefore you need to seek back by one byte and then fput ','. So that it should overwrite the ';'...
  12. ssingh

    fread syntax

    TomMcl2 is right. <p>Siddhartha Singh<br><a href=mailto:siddhu_singh@hotmail.com>siddhu_singh@hotmail.com</a><br><a href=siddhu.freehosting.net> </a><br>
  13. ssingh

    Passing structure components as arguments to a routine

    All the answers seems to be right. But we should always try to convince the author first , then suggest the better way.<br>Mr Sirbu has declared his structure in a right way.&nbsp;&nbsp;<br>struct node {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;double x,y;<br>&nbsp;&nbsp;&nbsp;&nbsp;}...
  14. ssingh

    Help me make a start Please

    Do you need whole Logic ? <p>Siddhartha Singh<br><a href=mailto:siddhu_singh@hotmail.com>siddhu_singh@hotmail.com</a><br><a href=siddhu.freehosting.net> </a><br>
  15. ssingh

    fscanf return

    Yes then your logic is O.K. <br>Just do one more thing.Don't use & before buf . If it is a string and then check whether it worked or not. <br>if(fscanf(fp, <p>Siddhartha Singh<br><a href=mailto:siddhu_singh@hotmail.com>siddhu_singh@hotmail.com</a><br><a href=siddhu.freehosting.net> </a><br>

Part and Inventory Search

Back
Top