Search:

Type: Posts; User: task

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Thread: sscanf()

    by task
    Replies
    4
    Views
    2,021

    sorry I am just being stupid now. I didn't mean...

    sorry I am just being stupid now. I didn't mean newline I ment null
  2. Thread: sscanf()

    by task
    Replies
    4
    Views
    2,021

    It is: char string1[21]; /* 20 characters plus...

    It is:

    char string1[21]; /* 20 characters plus newline character */

    I have allowed for the newline character when I created it.

    what I was unsure of is to pick them out of a temporarty...
  3. Thread: sscanf()

    by task
    Replies
    4
    Views
    2,021

    sscanf()

    with sscanf() if I want to pick up strings do I allow for the '\n'

    i.e. if i want to pick up 2 strings of 20 characters & 15characters

    would it be sscanf( string, "%20s%15s", string1, string2)...
  4. Thread: motherboard

    by task
    Replies
    4
    Views
    1,408

    motherboard

    How can I tell which motherboard I have without opening my computer up?
  5. Replies
    18
    Views
    2,088

    my mistake ther they are 20 and 60. I have...

    my mistake ther they are 20 and 60. I have allowed for them in the structure but just typed them wrong in the sscanf()
    and long temp_balance;
    but apart from that am I on the right track or is ther...
  6. Replies
    18
    Views
    2,088

    This is the structure as well, just in case it...

    This is the structure as well, just in case it helps :




    struct Record{
    char Record_Type,
    Customer_Code[6],
    Customer_Address[21],
    ...
  7. Replies
    18
    Views
    2,088

    Looks fine, other than the possible problem with...

    Looks fine, other than the possible problem with sscanf and your variables. If any of those are not character arrays, then you'll need to modify the call to use the address of said variable....
  8. Replies
    18
    Views
    2,088

    int make_fields( char *string_ptr, RECORD...

    int make_fields( char *string_ptr, RECORD *data_ptr )
    {
    if( sscanf( string_ptr, "%c%5s%21s%61s%10s%8s",
    &data_ptr->Cre.Record_Type,
    ...
  9. Replies
    18
    Views
    2,088

    I am not sure of how to do this as both the name...

    I am not sure of how to do this as both the name and address may contain spaces i.e 123 street not 123_street or something like that. I dont want it to stop reading the data when it encounters a...
  10. Replies
    18
    Views
    2,088

    yes that is as I understand it

    yes that is as I understand it
  11. Replies
    8
    Views
    3,333

    I dont think you can but you should have a gcc...

    I dont think you can but you should have a gcc compiler on Linux that will do it for you.
  12. Replies
    18
    Views
    2,088

    I don't produce the data the college does so I...

    I don't produce the data the college does so I cant incorporate anthing into the data. so the data must be stored in the file as 1character for type than 20 characters for the name ( i.e. if name is...
  13. Replies
    18
    Views
    2,088

    What's the delimiter between name and address? ...

    What's the delimiter between name and address?

    It is part of my coursework and I have read through it and it doesn't say, I am assuming that if the name occupies less than 20 characters the rest...
  14. Replies
    18
    Views
    2,088

    getting data from file

    I am not sure of the best wat to get my data from a file and convert it into it correct data type.

    I have used fgets(); to get the line of data but I am not sure of the best way of converting it...
  15. Thread: running a program

    by task
    Replies
    1
    Views
    1,539

    running a program

    I have to write a program for part of my coursework project. The overall program is broken down in to 4 individual programs. All data must pass through each program in order i. prog1, prog2, prog3...
  16. Replies
    23
    Views
    3,566

    Remote access control

    HI I am going away for a month in a week and was wondering if there is a way that I can access my PC from any PC whilst I am away and if so how do I do it. i.e. I want to work on another computer but...
  17. Thread: dual booting

    by task
    Replies
    4
    Views
    1,050

    Yes I have installed mandrake and redhat on my...

    Yes I have installed mandrake and redhat on my old computer
  18. Thread: dual booting

    by task
    Replies
    4
    Views
    1,050

    dual booting

    I have bought a new Packard bell Idesign and cant get it to install linux does anyone know of any reason why this is or how I could remedy it. I can't even get it to start partitioning so is ther...
  19. Thread: Looping Program

    by task
    Replies
    14
    Views
    2,380

    Sorry I should of said that you need to include a...

    Sorry I should of said that you need to include a specila header file to use toupper() :

    #include <ctype.h>

    and you can use to uppper as soon as you have the character ie.
    scanf( ... ); /*...
  20. Thread: Looping Program

    by task
    Replies
    14
    Views
    2,380

    when your checking the breed and the flag use ==...

    when your checking the breed and the flag use == not =

    i.e. while( flag == 'Y' )

    you might also want to make sure there is no confusion between 'y' and 'Y' or 'n' and 'N' you can use toupper(...
  21. Replies
    1
    Views
    1,567

    running old programs on new machine

    Why can i not use my old programs on my new computer. I have just got a windows xp and I have tried to install Microsoft office 2000 on it that I use to use on my old computer. it installed o.k. but...
  22. Thread: printing problem

    by task
    Replies
    12
    Views
    1,585

    How do I try this msconfig ??:confused:

    How do I try this msconfig ??:confused:
  23. Thread: printing problem

    by task
    Replies
    12
    Views
    1,585

    sorry forgot to mention its xp

    sorry forgot to mention its xp
  24. Thread: printing problem

    by task
    Replies
    12
    Views
    1,585

    printing problem

    Hi, Every time I switch my computer on it always try's to print a document. I cancel it and it still gets sent to the printer every time who ever I log on as how can I trace the program responsible...
  25. Replies
    19
    Views
    5,320

    I tried the disk on a compaq computer and it...

    I tried the disk on a compaq computer and it worked o.k. so the disks are fine. It must be my hardware how can I get round this.
    Any Ideas
Results 1 to 25 of 66
Page 1 of 3 1 2 3