Figured it out... N value was too small... Switched it to 100 works good now... slight oversight :)
Type: Posts; User: corey.heffernan
Figured it out... N value was too small... Switched it to 100 works good now... slight oversight :)
I have here an ansi truck, and I'm trying to get it to drive across the screen. It seems to be working... except for some reason the cab of the truck does not show up...
#include<stdio.h>...
**** Works now ****
Hi I am trying to make this program play a song from a .txt file of music that is written.
It was working up until I modified the program to be able to play different speeds...
Figured it out...
small bracket issue
for(k=0;k<N;k++)
{
if((*ptr+k) == c)
sum++;
}
So I took the & out... but my results still only give me 1...
when I replace
*ptr with x[]
it seems to work fine... but unfortunately I need to use the pointer...
This is my program, it is using a function to check a random array of character how many times C appears
always counts 1... cant figure it out
// This program will creat a random string of...