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 Wanet Telecoms Ltd 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: anatazi
  • Content: Threads
  • Order by date
  1. anatazi

    Date command

    Is there a way to get the date command to display yesterday's day of the week either in numbers[1,7] or words? Thanks
  2. anatazi

    loop through a file

    hi all i just have a quick question. i am writing a script that will check the number of links for each file in the user's directory and output the appropriate message. here it is: #!/bin/sh ls -l >outputfile HERE IS MYQUESTION: how do I loop through each line of the file outputfile for...
  3. anatazi

    hash tables?

    Hi all, can someone please explain to me how hash tables work and how they provide fast random access? Thanks a lot.
  4. anatazi

    question on binary search

    Hi all, Which version of bianry search is better? the forgetful version or the one that terminates as soon as the value is found. Also , can anyone explain to me how comb sort works? Thanks,
  5. anatazi

    help with queue question

    Hi all, How do you clear a queue that is implemented in an array? here is my tentative code below. Please give me some feedback. Thanks void clearqueue (queueentry *x, queue *q) { while(q->front) { q->count--; x*=q->entry[q->front]; q->front=(q->front + 1) % MAXQUEUE...
  6. anatazi

    adding one list to the other

    How do write the loop to add one list to the other; add each node to the list?
  7. anatazi

    HOw can I make a square using just

    HOw can I make a square using just single dimensional array? for example array[12]={1,2,2,3,4,5,6,4,5,6,9,12} would give something like: 1 2 2 3 4 5 6 4 5 6 9 12 I knom I need to use a for loop but can't get it to print it out correctly. THanks a lot
  8. anatazi

    script help

    Hi I need to use the script below to make a script that concatenate 2 lists together so the input to the script will be colon or space separated lists and the output will be a single colon separated list with all redundant items removed. I would appreciate any help and pointers to get me...
  9. anatazi

    linked list help

    Hello, How can I call a function that rturns a node? Its declaration is ELE find(). I have typedef struct Ele ELE; typedef struct *Ele *ELE; struct Ele{ char *adress; char *name; int id; ELE *next. }; Thanks you,
  10. anatazi

    Sed command error

    Hi all, I wrote this script (prog3a) that replaces all of the occurences of a search-string with the replace-string in the file specified on the command line. the sed command should send the output to a temp file , then the temp file is moved to $file.keep. when i run the script I get the...
  11. anatazi

    help with script

    Hi all, I need to write a script that concatenate lists together, and output the resulting list. For example: clean_list a a:b a:b:c :x: y:z a:b:c:.:x:y:z How do I go about that, could someone please help get me started; Thanks
  12. anatazi

    Help with compile error.

    Hi all, Can someone please tell me what is wrong with the code below.i get a &quot; &quot;curr->name&quot; is not an lvalue,but occurs in a context that requires one.curr->name=list1[i];&quot; message when i compile it. Why is that? Thank you. #include<string.h> #include <stdio.h> #define...
  13. anatazi

    Hi everyone, I need to build a lin

    Hi everyone, I need to build a linked list by merging two sorted character arrays together. How do I go about that and where can I find some good information on working with linked lists? Thanks.
  14. anatazi

    Help with error message

    Hi all Whenever I try to compile this code, I get cc: Error: readtopps.c, line 3: In this declaration, &quot;data&quot; has no linkage and is of an incomplete type. (incompnolink) int data[]; What does the error message means? Thanks, #include <stdio.h> int* readtopps (char fn[]){ int...
  15. anatazi

    Help with search function

    Hi all, I need to write a function for a program that I am working on. This function takes an int array and a pointer to an array of structures, compares the elements, and writes the matches to another array. I know that the function would look something like: Consider that the variables have...
  16. anatazi

    Help with compilation problem

    Hi everyone, I get a funny message whe I compile the program below. ld: Object file format error in: time.h: read_cur_obj_info: bad file magic number(0x7473) Here is the code, Please point me to any errors that I am making. Thanks #include<stdio.h> #include&quot;time.h&quot; struct TIME {...
  17. anatazi

    Getting memory fault message

    Hello all, I wrote this program that replace a string with another, using my own varaition on string function and now can not get it to work.Please take a look and tell me what I am doing wrong. I have pasted below the code for all the functions I am using. Thanks in advance. #include<stdio.h>...

Part and Inventory Search

Back
Top