Search:

Type: Posts; User: FreeCare

Search: Search took 0.00 seconds.

  1. Replies
    9
    Views
    1,664

    Sure, I have to learn Objective-C and am working...

    Sure, I have to learn Objective-C and am working thru the book by Stephen Kochan with the aim to getting into programming the iPhone.

    So am in a crash course on Objective C to get up to speed. ...
  2. Replies
    9
    Views
    1,664

    Thank you all for the replies! I programmed in...

    Thank you all for the replies!

    I programmed in C / C++ many moons ago but need to relearn it now.

    I have for many a year now been programming in VB.NET hence by struggle to get back to grips...
  3. Replies
    9
    Views
    1,664

    These string arrays are a pain!

    Hi,

    can someone tell me when I have code like this:



    #import <stdio.h>
    #import <string.h>

    int main (int argc, char const *argv[])
  4. Replies
    15
    Views
    3,434

    #import #import int main...

    #import <stdio.h>
    #import <string.h>

    int main (int argc, const char *argv[])
    {
    int inputLength;

    char userInput[10];

    printf("Enter a number to be reversed: ");
  5. Replies
    15
    Views
    3,434

    And I yours....have a good life

    And I yours....have a good life
  6. Replies
    15
    Views
    3,434

    Elysia, just started to read you post on the use...

    Elysia, just started to read you post on the use of scanf....very interesting!

    I'm working through Programming in Objective C which introduces the use of scanf.....hence my, learning of reading...
  7. Replies
    15
    Views
    3,434

    Tell you what, here is a simple tip for you. If...

    Tell you what, here is a simple tip for you. If you cannot be bothered to stay calm or refrain from being sarcastic or arsey why not...go make a cup of tea, count to 10 and move on and ignore my...
  8. Replies
    15
    Views
    3,434

    char computerOutput[2]; this would have an...

    char computerOutput[2];

    this would have an array with 2 characters containing garbage until set to something.

    the length of this array is 2.

    int x = 5;

    char computerOutput[x];
  9. Replies
    15
    Views
    3,434

    LOL I am not overly worried about the garbage in...

    LOL I am not overly worried about the garbage in computerOutput.

    What I dont understand is that if the userInput length is 1after I enter a single digit the variable inputLength is correctly set...
  10. Replies
    15
    Views
    3,434

    Getting confused with strings and length

    Hi, could someone explain why I am getting two different values in the code below please?



    #import <stdio.h>
    #import <string.h>

    int main (int argc, const char *argv[])
    {
    int inputLength;
Results 1 to 10 of 10