Search:

Type: Posts; User: JFK

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    1,838

    sieve of Erotosthenes (HELP!!!)

    Help! Got to procude the following code to replicate the sieve of Eratosthenes. Basically the program looks at numbers 0-100 and filters out the prime numbers. The basic algorithm is cross out...
  2. Thread: Help Needed

    by JFK
    Replies
    2
    Views
    1,079

    Help Needed

    Hi folks, this has got me stumped.
    input: (from a file called ch7d) Output:
    1 0 student ssessment attempt report
    1 0
    1 1 group 1
    1 1 none 2
    1 2 one 2
    5 2 ...
  3. Thread: Floats

    by JFK
    Replies
    2
    Views
    1,754

    Floats

    I have a value assigned to a variable called x (float) of 12.56.
    I have another int variable called y. If I want to output 12 (from the 12.56) i can do:

    y = x;
    printf("%d", y); /*truncates the...
  4. Thread: function problem

    by JFK
    Replies
    9
    Views
    1,130

    Not really.....

    Thanks for the response. I've looked at the code and I have pasted it into Borland 3 but I'm not sure how to run it.

    Also, what is the '*argv[] ' syntax all about!? I haven't got as far as...
  5. Thread: function problem

    by JFK
    Replies
    9
    Views
    1,130

    ARRRGGGGHHHHH!

    This is driving me nuts!! I'm still getting a redeclaration error..... here is my latest code (thanks for the help, it's really useful; I'm still new to C).

    #include<stdio.h>
    #include<conio.h>
    ...
  6. Thread: function problem

    by JFK
    Replies
    9
    Views
    1,130

    Still stuck!?!

    Thanks for replying; I have changed the int to char for both the variables you mentioned, unfortunately I'm getting the same error message?
  7. Thread: function problem

    by JFK
    Replies
    9
    Views
    1,130

    function problem

    From the input file (mine is called ch10b) containing the following (the first digit representing the number sunny days
    in a month, the second the number of rainy days):

    4 9
    3 12
    6 12
    8 8
    12...
  8. Thread: One small problem!

    by JFK
    Replies
    5
    Views
    1,237

    Cancel the above!

    Cracked it.
  9. Thread: One small problem!

    by JFK
    Replies
    5
    Views
    1,237

    re above:

    Thanks Salem, I've been spending so long on this that I put a 3 instead times the item to the power of 3! Doh.

    The program is still not giving me a combined total however, it's merely reporting...
  10. Thread: One small problem!

    by JFK
    Replies
    5
    Views
    1,237

    Re: one small problem below.

    Sorry, the JFC post below was meant to be me, if anyone is kind enough to reply can they do it through this one please? Thanks.
  11. Thread: Help!!!!

    by JFK
    Replies
    1
    Views
    1,465

    Help!!!!

    Hi folks, big one this, any help greatly appreciated!

    Basically the program reads the input file and then outputs the results (meant to be student data). The first digit represents the student...
  12. Thread: ending lines

    by JFK
    Replies
    1
    Views
    946

    ending lines

    I need to output the following to a screen:

    SUN MON TUE WED THU FRI SAT
    1 2 3 4
    5 6 7 8 9 10 11
    12 13 14 ...
  13. Thread: Logic Gates

    by JFK
    Replies
    0
    Views
    2,657

    Logic Gates

    Need Help!!!

    Not sure if I'm in the right place but here goes anyway. I have a project in college to design a circuit for 2 disco lights alternating between 4 colours. I understand the algebra...
  14. Thread: Visual Basic

    by JFK
    Replies
    2
    Views
    1,108

    Visual Basic

    I need help!!

    We have produced an application in work using VB forms for memebers of staff to use. Our aim is to output the text from within certain fields to a .tif image. We're stumped at the...
  15. Replies
    2
    Views
    1,491

    First time on the forum, need help fast!!

    I have to write a programme to show the amount of elapsed time between two given times, for example, start time 14:59:59 - end time = 15:00:00. Elapsed time = 0:0:1. I know it is to do with the mod...
Results 1 to 15 of 15