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 SkipVought 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: *

  1. jodders

    interface help............

    hey salem,thanks for your help..my program is almost there,but i m having another problem with one line of code which i dont know how to fix. while ( prompt_and_read( input, sizeof input, "suffixtree> " ) != NULL ) { ----> "need help here" ( input ); command =...
  2. jodders

    interface help............

    sorry to make it clearer with above,i wantto read in an input.
  3. jodders

    interface help............

    hi gang,keeping getting this error,unterminated character constant, where the * is, and i dont know what i can do.. basically i want the code to output "suffixtree: " and take in input if that makes sense. I hope someone can help me as i think its just a simple error. happy new year...
  4. jodders

    help with my predicate

    heres a list of facts of some names, king(Name,datefrom,dateto) king('Bill',1864,1895). %predicates king('Fred',1895,1901). king('Joe',1901,1923). king('Bob',1923,1930). king('Charlie',1930,1946). Im trying to write a predicate called ruled_after(X,Y) which is true when King X ruled at some...
  5. jodders

    Timer needs a tweak plz!

    hi all,ive created a timer and im almost managed to get it working. The problem i have is the timer display.The time countsdown,but the display of the time is incorrect. Below shows a working timer,but if you compile the program,you can see whats wrong if it. import javax.swing.*; import...
  6. jodders

    Count Down Timer

    Im trying to display a count down timer and i dont know how to display the time left after every second. For example,if a user types in 5, i want to display the time going 5 ,4 ,3 ,2,1 I think im close,but i need some help.The code below almost works. import java.awt.event.ActionEvent...
  7. jodders

    Input String Comparison

    how do you compare a user input to a a given string? for example,Iam creating a game for kids,and what happens is, a picture of a triangle appears,and the kid has to type in triangle to win.
  8. jodders

    Random Number Generator

    Im trying to make a random number generator for 8 shapes,and im have a little trouble at da moment with my coding. so far my function looks like this: public void random(){ for(int i =1;i <8; i++){ int n1 = (int) (Math.Random() * number); int n2 = (int) (Math.Random() * number)...
  9. jodders

    UNIX small help with ps command

    thanks PHV is all sorted now.u da man
  10. jodders

    UNIX small help with ps command

    i want the 10 processes in highest percentages. so i think its in %mem
  11. jodders

    UNIX small help with ps command

    hey all,Im almost there and need help with something. I need to print out 10 processes in the system using the ps command.so far i have come up with: –ps -e –o user, %cpu, %mem, cmd |sort –k 10 but i will list all of the processes on my SUSE Linux 8 system. I want the top 10 processes.Any...
  12. jodders

    GREP or WC?

    I a little rusty on UNIX and was wondering if anyone can tell me the commands for this. I have a database with group names,username and name eg. B ID123 Jones/A C iD122 SMilth/a B id322 Hae/H and want to just count the group names. B 2 Cant seem to find how...
  13. jodders

    Sequences in Prolog

    I need help with sequences where you can have a sequence of three letters eg. R,G,B in any order. The only two problems are letters are not allowed twice in sucession and G,B,R is not allowed in sucession. Really need help

Part and Inventory Search

Back
Top