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 =...
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...
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...
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...
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...
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.
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)...
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...
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...
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.