Search:

Type: Posts; User: brad123

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: program glitch

    by brad123
    Replies
    2
    Views
    1,278

    with reference to your point how do i fix this...

    with reference to your point
    how do i fix this problem? Brad
  2. Thread: program glitch

    by brad123
    Replies
    2
    Views
    1,278

    program glitch

    Hi can anyone explain why my program isnt working properly. Wen u go to option 2, files, the file editing, it doesnt show the correct amount of entries.

    Brad.




    #include <stdio.h>...
  3. Thread: bad code?

    by brad123
    Replies
    11
    Views
    1,806

    Thanks prelude thats sorted it :) Brad.

    Thanks prelude thats sorted it :)

    Brad.
  4. Thread: bad code?

    by brad123
    Replies
    11
    Views
    1,806

    yes i think you are on track with wot i mean...

    yes i think you are on track with wot i mean hammer, after i type in the variables into the maths program and i have a result how do i return to the previous menu? Thanks

    Brad.
  5. Thread: bad code?

    by brad123
    Replies
    11
    Views
    1,806

    thanks prelude, ok, how can i return to the main...

    thanks prelude, ok, how can i return to the main function from functions above the main?

    Brad.
  6. Thread: bad code?

    by brad123
    Replies
    11
    Views
    1,806

    i made it work by changing the choices on the...

    i made it work by changing the choices on the maths list to A and not 1 (i dont know why this had an effect). Now the probelm seems to be that it is looping twice before i can type anything( it'd...
  7. Thread: bad code?

    by brad123
    Replies
    11
    Views
    1,806

    thanks hammer but that wasnt it, that was just me...

    thanks hammer but that wasnt it, that was just me trying to change the declaration from int to char and left it like that accidently before i copied it to this thread, any other suggestions? :)
  8. Thread: bad code?

    by brad123
    Replies
    11
    Views
    1,806

    bad code?

    Hi im writing a program for a project and dont know why i cant refer to the math1 funtion from inside the void option1(void) function(see below) any insight into this would be appreciated.




    ...
  9. Thread: wots going on?

    by brad123
    Replies
    3
    Views
    1,313

    sorry about not using tags, the program works if...

    sorry about not using tags, the program works if i hide the printf line, but obviously wont display the answer because that line is needed for that. im just wondering why it isnt working :)

    Brad.
  10. Thread: wots going on?

    by brad123
    Replies
    3
    Views
    1,313

    wots going on?

    can anyone explain why this isnt working? The printf that ive hidden from the compiler seems to cock it up??

    CODE:

    #include <stdio.h>
    #include <clib.h>



    struct dat{
  11. Replies
    12
    Views
    2,234

    clearing the screen

    Is there a way to clear screen after a while loop has taken place, so it starts program again but not at the bottom of the last text?

    Brad.
  12. Replies
    2
    Views
    974

    problem again :(

    im having problems calculating the number of days until the 25/12/2002,

    here is my program (attached) so far, i know its messy but have a look and see wot i can do, thanks,


    Brad.
  13. Replies
    17
    Views
    2,888

    after putting this code into my programme: ...

    after putting this code into my programme:

    printf("\n\nOk, please enter a word to look for in this sentence.\n");

    scanf("%s", &word);


    char *delims = { " .," };
    ...
  14. Replies
    17
    Views
    2,888

    cheers hammer, brad.

    cheers hammer, brad.
  15. Replies
    17
    Views
    2,888

    ok , ive put this piece of code in: if...

    ok , ive put this piece of code in:

    if (strcmp(ptr, "is") == 0)

    from hammer, all i need to do now is make the search word not a constant ("is"),

    if i use the line

    scanf("%c", &word);
  16. Replies
    17
    Views
    2,888

    thanks again prelude, but ive never used this...

    thanks again prelude, but ive never used this function strtok before and although uve shown me wot to do could i trouble you again to help me integrate it into my program? its the final piece in the...
  17. Replies
    17
    Views
    2,888

    baically, i need to know how to count how many...

    baically, i need to know how to count how many times an inputed word appears in sentence 2. any ideas?

    Brad.
  18. Replies
    17
    Views
    2,888

    can u solve it?

    can anyone tell me why this programme isnt working? its meant to count how many words that you enter appear in the second sentence. run it and see wot i mean. Thanks,




    PROGRAMME:

    #include...
  19. Thread: Any Ideas?

    by brad123
    Replies
    4
    Views
    3,213

    thanks prelude, ive solved it now :), it was a...

    thanks prelude, ive solved it now :), it was a mix up of terms...

    code:
    else if (t.month == 2 && t.day == 29&& leap != 0)

    printf("ERROR, the year you entered isnt a leapyear.\n");

    else if...
  20. Thread: Any Ideas?

    by brad123
    Replies
    4
    Views
    3,213

    cheers, but it compiles and builds this program...

    cheers, but it compiles and builds this program on my compiler, its just that it doesnt recognise the correct leap years, ie it thinks 2001 was one and 2000 wasnt.?
    Brad.
  21. Thread: Any Ideas?

    by brad123
    Replies
    4
    Views
    3,213

    Any Ideas?

    can anyone see wot ive done wrong in this piece of code? it doesnt recognise leap years accurately.

    code:
    struct dat{

    int day;
    int month;
    int year;
    };
  22. Replies
    3
    Views
    2,822

    if the code is fine then maybe something else is...

    if the code is fine then maybe something else is wrong, it compiles the file with no problems but when trying to build it and run, it says the failure is a result of a failed compilation?? i dont...
  23. Replies
    3
    Views
    2,822

    why doesnt this work?

    can anyone tell me y this doesnt work please, and how to make it work?


    /* ---------------------------------------------------------------------- */
    /* Program to calculate # of days...
  24. Replies
    12
    Views
    1,157

    cheers. Brad.

    cheers.

    Brad.
  25. Replies
    12
    Views
    1,157

    sorry guys for wastin your time, and i didnt mean...

    sorry guys for wastin your time, and i didnt mean to be rude, its just im no expert with c nor will i ever be, but for this particular module, it is very important. Brad.
Results 1 to 25 of 32
Page 1 of 2 1 2