Search:

Type: Posts; User: richdb

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    13
    Views
    2,533

    I thought then you were just trying to make me...

    I thought then you were just trying to make me think.
  2. Replies
    13
    Views
    2,533

    That's all true, but how is text[] ever going to...

    That's all true, but how is text[] ever going to equal the remainder? Is there a condition that has to be met? I don't know how the return statement is read.
  3. Replies
    13
    Views
    2,533

    I pretty much understand that whole thing, but...

    I pretty much understand that whole thing, but how does that return statement work: The remainder of sum / 11 is equal to text[] - '0' ? If we used 0132261197 for the ISBN, Text[] would equal 9 at...
  4. Replies
    13
    Views
    2,533

    Processing a book ISBN

    Hi,
    I am trying to figure out this program. It accepts an ISBN (International Standard Book Number) from the user, and then decides whether it was entered correctly or not based on the formula...
  5. Replies
    48
    Views
    12,807

    so this is a full version they send? I don't...

    so this is a full version they send? I don't understand why they would do that.
  6. Replies
    48
    Views
    12,807

    and how do we get this....?

    and how do we get this....?
  7. Replies
    8
    Views
    21,606

    Yeah, but other compilers do it automatically...

    Yeah, but other compilers do it automatically when you type certain keywords.
  8. Replies
    8
    Views
    21,606

    That's alot better. #include ...

    That's alot better.



    #include <stdio.h>

    main()

    {
    int a=2,
  9. Replies
    8
    Views
    21,606

    It is set to 2. But playing with it doesn't seem...

    It is set to 2. But playing with it doesn't seem to help. The code doesn't indent in the places it should, and braces don't wrap correctly either. When I write a loop, it comes out looking like this:...
  10. Replies
    8
    Views
    21,606

    I already have that selected, but it doesn't...

    I already have that selected, but it doesn't change anything.
  11. Replies
    8
    Views
    21,606

    setting indentation in dev-c++

    I know this has been covered before, but I can't get dev-c++ to do indentation. I have tried the obvious things like: Tools, editor options. But whatever I try, I can't get it to do decent...
  12. Replies
    10
    Views
    1,377

    Thanks

    Thanks
  13. Replies
    10
    Views
    1,377

    But only once, when the for loop ends (hits '\0')...

    But only once, when the for loop ends (hits '\0')
    for ( i = 0; source[i] != '\0'; ++i )
    {
    if ( src == source[i] )
    {
    return target[i];
    }
    }
    return src; /*...
  14. Replies
    10
    Views
    1,377

    Dave, I follow you completely, but...

    Dave,
    I follow you completely, but let me make sure of some things. src is the user input? And why return src when the for loop ends?
  15. Replies
    10
    Views
    1,377

    I want to use static to force the pointer, (only...

    I want to use static to force the pointer, (only the for loop instance of it) to retain its value instead of being reinitialized when the loop starts over.

    I know about gets but I'm trying to...
  16. Replies
    10
    Views
    1,377

    Its a problem from a book, to do a simple...

    Its a problem from a book, to do a simple encryption on a string. It basically looks at the character from the user, checks the 'source' array for that character, and replaces the user's character...
  17. Replies
    10
    Views
    1,377

    casting a pointer as static

    Hi,
    Why can't I get static to work here? Where static is highlighted in blue.
    #include <stdio.h>

    main()

    {
    char source[] = "qazwsxedcrfvtgbyhnujmikolp";
    char * src_ptr;
  18. Replies
    4
    Views
    1,553

    using static on a pointer

    Hi,
    I am trying to write this program that does a very simple encryption on a string input by the user. It basically looks at the character from the user, checks the 'source' array for that...
  19. Replies
    13
    Views
    6,301

    So I would have to make the pointers large enough...

    So I would have to make the pointers large enough to store the words?
  20. Replies
    13
    Views
    6,301

    So my screwy output is not because of missing...

    So my screwy output is not because of missing '\0's?
    I'm trying to get each word on its own line.

    I'm really just trying to see if you can manually enter the data into an array of pointers and...
  21. Replies
    13
    Views
    6,301

    I was really just trying this to find out if when...

    I was really just trying this to find out if when you enter data into an array of pointers if the \0 (NULL) would get added automatically. I'm thinking it doesn't.

    Im just starting to learn...
  22. Replies
    13
    Views
    6,301

    I'm just initializing the data into the pointers...

    I'm just initializing the data into the pointers for now, so why wouldn't their contents print correctly?
  23. Replies
    13
    Views
    6,301

    Entering data into array of char pointers

    Hi,
    I'm trying to enter the days of the week into this array of char pointers, but the output is strange.
    Please enter the days of the week:


    Day 1: Monday

    Day 2: tuesday

    Day 3:...
  24. ahh yes, I have experienced the...

    ahh yes,
    I have experienced the problem with gets() already. The program crashes with a windows error if the input is to large.
  25. I see. But there is no way you can enter the...

    I see. But there is no way you can enter the sentence at once and be able to access each word as an individual element?
Results 1 to 25 of 101
Page 1 of 5 1 2 3 4