Forum: C Feb 26th, 2008 |
| Replies: 3 Views: 569 Thanks guys. Here's the solution btw:int intCheck(){
int userNum, count = 0;
int SIZE = 5;
char userNum_asChar[SIZE];
int negFlag;
fgets ( userNum_asChar, SIZE, stdin );
printf(... |
Forum: C Feb 26th, 2008 |
| Replies: 3 Views: 569 I have a simple program (code follows) that circle_shifts an array, but I need it to be able to quit when the user enters a character, (ex. q). Where do I start?#include <stdio.h>
#include... |
Forum: C Jan 22nd, 2008 |
| Replies: 4 Views: 2,067 Thank you! I never would have figured that out. It all works the way it should now. |
Forum: C Jan 22nd, 2008 |
| Replies: 4 Views: 2,067 here ya go:#include <stdio.h>
int dummy;
int stringSplitter(char arrayToSplit[], int arraySize);
int main()
{
char userString[20]; |
Forum: C Jan 22nd, 2008 |
| Replies: 4 Views: 2,067 I'm trying to make a function that can scan a char array, and finish it's business when it comes to a '\0'. so here is the for loop i came up with:
for( i=0 ; charArray[i] != '\0' ; i++ )
But here... |