Search:

Type: Posts; User: fatdunky

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    1,647

    hehe i think i figured out what my problem was...

    hehe i think i figured out what my problem was *blush* i was correctly creating the array and it was null, if you look at the create array i was just creating a tempory array
  2. Replies
    6
    Views
    1,647

    hmmmm okay So arrayPtr is a pointer that...

    hmmmm okay

    So arrayPtr is a pointer that points to and array of pointers;
    So if wanted to change one of the pointers in the array,
    i though i could just do arrayPtr[index] = NewPointer;
    but...
  3. Replies
    6
    Views
    1,647

    Ahh good point, i think is where i confused...

    Ahh good point,

    i think is where i confused with pointers to pointers,

    If i do retVal = *arrayPtr;

    That means retval equals the pointer that arrayPtr was pointing to right?

    so that means...
  4. Replies
    6
    Views
    1,647

    Dynamic Mutli dimensional Array question.

    Hi guys, im trying to make a Dynamic Mutli dimensional Array,

    There are lots of tutorials for making these (using a pointer array of poniters) but not for adding and retriving from them really.
    ...
  5. Replies
    1
    Views
    853

    Possible array problem.

    Heya guys, Ive got a fairly simple exercise to do where i read in 10 number and print the avg,sum and max.

    Only problem is i seem to be reading the numbers in fine but the array doesnt seem to be...
  6. Replies
    6
    Views
    2,018

    Aahh okay cool thanks =)

    Aahh okay cool thanks =)
  7. Replies
    6
    Views
    2,018

    *sigh* sorry guys but im still getting a program...

    *sigh* sorry guys but im still getting a program crash... it worked for a while then stop..
    (unkown reason i was changing something to do with the maths no the string)



    void *getInput(char...
  8. Replies
    6
    Views
    2,018

    Ahhh cool, should of thought of that.. i think...

    Ahhh cool, should of thought of that.. i think ill go with option one... Thanks for the help.
  9. Replies
    6
    Views
    2,018

    Oh i just noticed i have convertString2Decimal...

    Oh i just noticed i have

    convertString2Decimal
    and
    convertString2float
    which would seem a little silly

    by convertString2Decimal i mean convert to base 10.
  10. Replies
    6
    Views
    2,018

    Pointer problem... i think

    hi there... im tring to write a program that basicly adds time together
    The first time is a intereger in 24h format ie (1301) would be 1:01 pm
    the second time is in the same format but the amount...
  11. Replies
    1
    Views
    1,450

    Fairly simple problem

    Hey guys im just trying to make a simple program that will use structures to store your full name and age.



    /********************************
    Exercise 12271
    Input and output your name,...
  12. Heh well i actually figured it out, so dont worry...

    Heh well i actually figured it out, so dont worry guys but thanks anyway.

    Here my code in the end if your intrested.



    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include...
  13. Ive actually man a huge change to the sorting...

    Ive actually man a huge change to the sorting function as well now. (based on a thread i saw on the board)



    void splitStringToDilimeter(char *string,char *retVal)
    {
    unsigned int count = 0;...
  14. Hehe whoops yeah sorry forgot to fix that. ...

    Hehe whoops yeah sorry forgot to fix that.



    int main(int argc, char **argv)
    {
    if(argc == 2)
    {
    nBinaryTreeNode *BTRoot = ReadFileToTree(argv[1]);
    OpenWriteFileFromTree(argv[1],BTRoot);
  15. Oh and ive been fooling around with this for a...

    Oh and ive been fooling around with this for a while trying to get it work. So there might be some usless stuff in there (inculdes i dont need, printf's i dont ect...) sorry. =)
  16. Sorting problem.. well actually more of a string problem

    Hi guys,

    im trying to write a program that will sort a file. But that you can all give the option of using a delimeter and colum to sort by. (by typing /c in command prompt)

    eg if the file had...
  17. Replies
    3
    Views
    1,143

    Im pretty new a c but i guess you would just...

    Im pretty new a c but i guess you would just write a function that would loop through the char array (string) copy a section of the array. Obviously you would have to pass the string(array),...
  18. Cool, thanks for all the help guys. I got it...

    Cool, thanks for all the help guys. I got it figured out =). I used a binary tree in the end (thanks bob i nicked your btree code, dont worry i did read the binary tree chapter and understood it).
    ...
  19. heh im back again. thanks for the help so far...

    heh im back again. thanks for the help so far guys.

    Ive had another crack at it i seem to have most of it sorted out execpt for one thing. Swapping the strings in the array. I can't really figure...
  20. Well i had another crack at it. this time got ...

    Well i had another crack at it. this time got



    #include <stdio.h>
    #include <string.h>

    /***************************************
    This program shall SORT!
    Made by Mark Crick
  21. Oh and returning the int in the main. I started...

    Oh and returning the int in the main. I started out with exit(1);, but for some reason my comipler would give a warning
    Warning W8004 H:\C exercises\sort.c 39: 'linesoftxtinfile' is assigned a...
  22. Umm nah its not homework. Im just learning c at...

    Umm nah its not homework. Im just learning c at my spare time at work. Yeah ive been using online tutorials ,none of them mentioned fread() fwrite() well not for text files they dont...
    ill have a...
  23. Ahh heh yeah whoops. Seeing as i dont use...

    Ahh heh yeah whoops. Seeing as i dont use textLine in that loop (its just a count of the lines) i could just use a "" couldnt i?.
  24. Newbieish Question: About a buffer for Sorting a Text file.

    Hi im realtively new to c, I am trying to write a program that will read
    in a text file and sort it, and then write the result back over the the text file.

    So far im having trouble reading the...
Results 1 to 24 of 24