Search:

Type: Posts; User: slotown

Search: Search took 0.00 seconds.

  1. The problem I'm having is during: for(i = 0;...

    The problem I'm having is during:


    for(i = 0; i < tokens; i++) {


    tokenum[i] = atoi(array[i]);
    printf("\n%i", tokenum[i]);
    }
    for...
  2. nothing.. or 0. then it gets changed to the...

    nothing.. or 0. then it gets changed to the string length in the function. at least that is my intention
  3. It is supposed to be the value of all non null...

    It is supposed to be the value of all non null characters in the string. it is in the function
  4. Tokenized string and ascii conversion problems

    void strInput (char str[], int maxChars);


    int main(void)
    {
    int maxChars;
    char str[80] = {0}, yesno = 'y';
    char * array[80];
    while(yesno!='n')
    {
  5. I am required to use getchar() :/ count...

    I am required to use getchar() :/

    count outside the loop helped out thank you so much
  6. I'm obviously a beginner at this so if i'm better...

    I'm obviously a beginner at this so if i'm better off starting over someone let me know
  7. #include #include #include...

    #include <stdio.h>
    #include <stdlib.h>
    #include <ctype.h>
    #include <string.h>


    int main(void)
    {
    char str[81];
    int length, i, k;
  8. Does it have something to do with the whiles (...

    Does it have something to do with the whiles ( str[k] = '\0') ???

    and I guess I could be lazy and inside the if statements I could have an int for every string function but I'm trying to be as...
  9. Utilizing string concepts. String functions not rolling

    After line 37, my string functions don't run at all. It compiles fine but there is just no output.

    I really appreciate the help, i've been here for hours looking at this.

    (by the way, the...
  10. void sortThree(int *a, int *b, int *c); { ...

    void sortThree(int *a, int *b, int *c);
    {
    int swap = 0;

    if (*c < *b)
    {
    swap = *c;
    *c = &b;
    *b = &c;
    }
  11. I thought that too but being simplistic and...

    I thought that too but being simplistic and optimal is the whole challenge that this is supposed to be and i feel it would be quite a lot of code with those
  12. Sorting variables with an optimized, specific process

    Hello everybody,

    so i'm writing a very simple program where the user inputs 3 ints *a, *b, *c, and there is one function that handles the addresses of the integers and sorts them in ascending...
Results 1 to 12 of 12