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...
Type: Posts; User: Lillian
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...
thanks again..
thanks...the pointer bit has lost me a little. Could you put some "english" next those lines?:D
This is what I started with. it finds the first t but that's it...
#include <stdio.h>
#include <conio.h>
#include <string.h>
whatever works!! I think they want us to use the standard though. could you show both?
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...
everyone's been great!!
Have a great week.
#include<stdio.h>
#include<conio.h>
int divide (int, int); /*function prototype*/
int remainder (int, int); /*function prototype*/
int reverse (int []); /*function prototype*/
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...
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...
Thanks for your last response. My new question is in the subject.
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).
...
i'm totally green. I didn't intend to flout your rules.
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...