Search:

Type: Posts; User: Lillian

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    1,791

    life simulation

    hi,

    My Challenge: to populate a 20x20 array with 100 random numbers which will represent organisms which will then die out based on their neighbours' existence.

    My approach: I've generated the...
  2. Replies
    18
    Views
    2,349

    thanks again..

    thanks again..
  3. Replies
    18
    Views
    2,349

    thanks...the pointer bit has lost me a little. ...

    thanks...the pointer bit has lost me a little. Could you put some "english" next those lines?:D
  4. Replies
    18
    Views
    2,349

    This is what I started with. it finds the first...

    This is what I started with. it finds the first t but that's it...





    #include <stdio.h>
    #include <conio.h>
    #include <string.h>
  5. Replies
    18
    Views
    2,349

    whatever works!! I think they want us to use the...

    whatever works!! I think they want us to use the standard though. could you show both?
  6. Replies
    18
    Views
    2,349

    searching a character array

    I need to enter a string which contains words with the letters "th", search them out and replace them with "XX". I have been using strcspn, but it doesn't work. (We're now learning string...
  7. Replies
    12
    Views
    3,685

    thanks guys

    everyone's been great!!

    Have a great week.
  8. Replies
    12
    Views
    3,685

    complete code

    #include<stdio.h>
    #include<conio.h>



    int divide (int, int); /*function prototype*/

    int remainder (int, int); /*function prototype*/

    int reverse (int []); /*function prototype*/
  9. Replies
    12
    Views
    3,685

    those zeros

    I'm testing with 45 converting to base 6. Remainders are 311.

    Reverse order is 113, but I'm getting 00000000000000000113. These are the zeros I'm trying to eliminate.

    Please note that I am...
  10. Replies
    12
    Views
    3,685

    Could you simplify it?

    some of the concepts in Prelude's reply we haven't dealt with yet in class, so I don't quite grab them. (thanks anyway)

    However, the simple version :) from Salem, that works for me! could you...
  11. Replies
    12
    Views
    3,685

    how do i eliminate the leading zeros?

    Thanks for your last response. My new question is in the subject.
  12. Replies
    12
    Views
    3,685

    reverse order - arrays

    I'm now learning arrays and I'm stuck trying to print an array in reverse order. Here's the working part of my code. I've deleted the lead up (printf and scanf statements).



    ...
  13. Replies
    3
    Views
    1,731

    humblest apologies

    i'm totally green. I didn't intend to flout your rules.
  14. Replies
    3
    Views
    1,731

    repetition with the "for" structure

    thanks for your help the last time, guys. I now have a question re: the "for" structure.

    This code for printing a diamond has more than one "for" statement and I don't understand how to...
Results 1 to 14 of 14