Thread: Help

  1. #1
    Registered User
    Join Date
    Jan 2010
    Posts
    3

    Help

    Hello everyone, I'm new to C programming but I shouldn't be new because I'm actually doing a computer eng course and I have this unit. The thing is that I'm a Portuguese guy studying in the UK and all the moving abroad process messed up with my mind and I couldn't attend the majority of my classes.

    The things is that I realized that I actually accumulated a lot of work to do. And I was informed today that I have until 9pm (London GMT) to write a C code answering 5 questions.

    I would never ask this to anyone if it wasn't really important. I have actually no C basics.

    Can please someone help me. I really don't wanna fail !

    Thank you very much.

  2. #2
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Location
    Liverpool UK
    Posts
    1,472
    I'm new to C programming but I shouldn't be new because I'm actually doing a computer eng course and I have this unit. The thing is that I'm a Portuguese guy studying in the UK and all the moving abroad process messed up with my mind and I couldn't attend the majority of my classes
    call me a cynic but...moving abroad processes like hitting all the new bars all the time, meeting loads of new people and being too tired and hungover to get out of bed and do classes?
    Happened to me in Spain too, no excuse for leaving your work until this late though, sorry,

    Put questions up anyway though, and of course your present ideas on how to give it a go, if not, bale it now and go and beg an extension
    Last edited by rogster001; 01-15-2010 at 04:51 AM.

  3. #3
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    No one can help answer your questions until you present the questions, of course.

    This forum is heavily archived on Google, etc., so be aware of that.

  4. #4
    Registered User
    Join Date
    Jan 2010
    Posts
    3
    Quote Originally Posted by rogster001 View Post
    call me a cynic but...moving abroad processes like hitting all the new bars all the time, meeting loads of new people and being too tired and hungover to get out of bed and do classes?
    Happened to me in Spain too, no excuse for leaving your work until this late though, sorry,

    Put questions up anyway though, and of course your present ideas on how to give it a go, if not, bale it now and go and beg an extension
    Exactly like than man... I'll PM you man

    Quote Originally Posted by Adak View Post
    No one can help answer your questions until you present the questions, of course.

    This forum is heavily archived on Google, etc., so be aware of that.
    Yeah I thought about that detail too.

    Thanks a lot guys for the fast replies!

  5. #5
    Registered User
    Join Date
    Jan 2010
    Posts
    3
    Ok so the first question is this.
    Last edited by stisher; 01-15-2010 at 05:15 AM.

  6. #6
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Location
    Liverpool UK
    Posts
    1,472
    easy, you dont need us to help with that! theres plenty of people that regularly get that as an undesired 'mistake' in their output and then write in asking for a fix!

  7. #7
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    You need a char array[9] in size, perhaps. you need a for i = 0 to 7 loop to scanf("%c", &array[i]),
    perhaps. You could use %d to print the ascii value, like in this program:

    Code:
    /* show the system values (usually, ascii) */
    
    #include <stdio.h>
    
    int main() {
      int i;
    
      char str[] = {"abcdefghijklmnopqrstuvwxyz"};
    
      printf("\n\n\n\n\n");
      for(i=0;str[i]!='\0';i++) {
        printf(" %c %3d %2X  ", str[i], str[i], str[i]);
        if(i % 5 == 4 && i)
          putchar('\n');
      }      
      i = getchar(); ++i;
      return 0;
    }
    For the rest of your questions, I need to see the start of a program or psuedo code or something, from you.

    I don't care if it's half C and half Zebra, mixed with Chinese, but you need to put up some effort on these.

Popular pages Recent additions subscribe to a feed