Search:

Type: Posts; User: TexasKid

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    841

    Hmm thanks I'll try that and get back to you...

    Hmm thanks I'll try that and get back to you...
  2. Replies
    5
    Views
    841

    Can you show me how to use fgets() please to...

    Can you show me how to use fgets() please to store both names please ?
  3. Replies
    5
    Views
    841

    Help needed in basic C program

    I need to write a program that asks the user to input his name and display it on screen. It is required that the program also caters for people having 2 names, for example Peter Michael.

    The...
  4. Replies
    5
    Views
    967

    Now I have floating point representations, and I...

    Now I have floating point representations, and I have to restrict the numbers to 1 d.p . So I did %.1f . How can I use the above technique with such representations please?
  5. Replies
    5
    Views
    967

    Thanks a lot Salem. Just what I needed !

    Thanks a lot Salem. Just what I needed !
  6. Replies
    5
    Views
    967

    Question about table formatting in C.

    I am writing a program that lets the user enter the name and surname of his employees. I also need to put this information in a table , under the headings NAME SURNAME, where the names would be put...
  7. Replies
    7
    Views
    1,226

    I just edited the insertStudent function , so...

    I just edited the insertStudent function , so that the counter is incremented. How can the counter then be displayed ?

    This is the edited insertStudent function :



    void...
  8. Replies
    7
    Views
    1,226

    I already added the variable 'counter' in the...

    I already added the variable 'counter' in the structure. Can you help me create the search function please?
  9. Replies
    7
    Views
    1,226

    Question about linked list and counter

    So I am writing a program where the user has to enter various names , and then a list shows the entered names in alphabetical order. My program is working , but if for example the user enters the...
  10. Replies
    2
    Views
    754

    Question about linked lists

    I am writing a program that is like a survey. It prompts the user to enter his favorite meal. Then after all users have submitted their choices, the program should display the results.

    The user...
  11. Replies
    13
    Views
    1,326

    ok it is working now . Thanks Adak , and all the...

    ok it is working now . Thanks Adak , and all the others that tried to help.
  12. Replies
    13
    Views
    1,326

    ok I think it is working Adak with getchar()....

    ok I think it is working Adak with getchar(). I'll test it a bit and I'll get back to you.
  13. Replies
    13
    Views
    1,326

    Thanks Adak , but the condition that specifies...

    Thanks Adak , but the condition that specifies that the user ha to input a number between 1 and 6 works. The problem is in the condition that states that no alphabet character must be input.
  14. Replies
    13
    Views
    1,326

    I think I understood. So how can I do it with...

    I think I understood. So how can I do it with ASCII please , so that A-Z characters cannot be input from the user ?
  15. Replies
    13
    Views
    1,326

    I tried it with or , but still not obeying the...

    I tried it with or , but still not obeying the condition that it must not be alphabetic.
  16. Replies
    13
    Views
    1,326

    Question about c program menu

    I am writing a menu for a program. The user has to chose from 6 options, hence the user can only enter numbers between 1 and 6. I also did a condition so that no other characters rather than numbers...
  17. Replies
    11
    Views
    1,852

    oh ok thanks.

    oh ok thanks.
  18. Replies
    11
    Views
    1,852

    what should I use then please?

    what should I use then please?
  19. Replies
    11
    Views
    1,852

    I am using this conditon : name[i] !='\'' &&...

    I am using this conditon :

    name[i] !='\'' && name[i] !=' ' && !isalpha(name[i])

    and it is working. The only problem I am seeing is that when for example the user enters : "Michael Paul" <--...
  20. Replies
    11
    Views
    1,852

    but how can it also accept single quote...

    but how can it also accept single quote characters and spaces , but does not accept other punctuation marks ?
  21. Replies
    11
    Views
    1,852

    Question about user input validaton

    So I need to validate the input that the user enters. The user has to enter his name , and the program must check that the name's characters are from the alphabet , but the single quote ' and space...
  22. I need to know how to access the character string...

    I need to know how to access the character string from the file according t the RecNumber inputted by the user , s that I can read the length using strlen().
  23. Reading length of string from record in file

    I am writing a program that creates a textfile that stores records. Each record is storing the following structure :



    typedef struct Client
    {
    char id[10];
    char name[25];
    ...
  24. When adding records to a file, the program is...

    When adding records to a file, the program is automatically saving records after each other , for example it starts at 0,1,2 etc. But can I for example store a record directly at position 40 for...
  25. Replies
    5
    Views
    1,110

    What do you mean by returning an int ? .. sorry...

    What do you mean by returning an int ? .. sorry for my ignorance but I am new to C.
Results 1 to 25 of 44
Page 1 of 2 1 2