Search:

Type: Posts; User: LowLife

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    1,945

    indeed, the \r and \n where read, with the new...

    indeed, the \r and \n where read, with the new file read statement, the \r was the only thing that had to be removed from the string, which wasn't very hard :)

    thnx for pointing this out to me
  2. Replies
    3
    Views
    1,945

    symbols returned when reading file

    Hi, I am currently making a program which has to read a certain line from a file, this is no problem, but the string returned from fgets() contains two strange symbols at the end of the word, a music...
  3. Replies
    8
    Views
    2,375

    Hmm, sorry Dave_Sinkula, what you said was true,...

    Hmm, sorry Dave_Sinkula, what you said was true, there seemed to be something wrong with my including files

    hk_mp5kpdw, I am using seperate source and header files, the source file are my...
  4. Replies
    8
    Views
    2,375

    Nope I tried his method just now, and it doesn't...

    Nope I tried his method just now, and it doesn't change the values of my array, can it have something to do with the fact that this function is in another file, and I am including it? though this...
  5. Replies
    8
    Views
    2,375

    but this will not change the array values in my...

    but this will not change the array values in my main function, it will just change them within the function arraychanging, I want the array that I pass to be altered, like a reference parameter in...
  6. Replies
    8
    Views
    2,375

    Still this doesn't solve my problem, and I don't...

    Still this doesn't solve my problem, and I don't think you get what I am trying to do, I want to pass an array to the function, so I give the array address to the function with &somearray, but it...
  7. Replies
    8
    Views
    2,375

    reference parameters

    Due to the lack of reference parameters being available in C, i need to use pointers to change a value with a function, but I can't seem to figure out how I can pass an array to a function and change...
  8. Thread: break question

    by LowLife
    Replies
    4
    Views
    1,147

    thnx, I thought it may could have been solved...

    thnx, I thought it may could have been solved without adding the extra variable, I'll try that other method another time, once my code is finished, the thing you suggested will do for now
  9. Thread: break question

    by LowLife
    Replies
    4
    Views
    1,147

    break question

    Hi all, I have the following question, f.e. I am currently using two while loops, one inside the other, now, if a certain condition is met, I want BOTH the while loops to be terminated using break;,...
  10. Replies
    4
    Views
    8,366

    Filling up a circle

    Hi, I am working on a program, for which I wrote a function to draw a circle based on a given color, x and y coordinate and a radius, this function however doesn't have the possibility to be filled...
  11. Replies
    12
    Views
    4,738

    I'm sticking with my #define code, since the...

    I'm sticking with my #define code, since the thing the last post suggested:



    const int row = 5;
    const int column = 10;
    char screen[row][column];


    gives the same error: "variable-size type...
  12. Replies
    12
    Views
    4,738

    indeed, it's not the exact code, guess I'm trying...

    indeed, it's not the exact code, guess I'm trying to hard to keep my explanation simple, my apologies, this is what I really did:


    int row = 5,
    column = 10;
    char screen[row][column];
    ...
  13. Replies
    12
    Views
    4,738

    Ok, I thought the error was common, but it seems...

    Ok, I thought the error was common, but it seems not to be the case, so here is some more info:

    I try to define a global two dimensional array called "screen" with f.e. 5 rows and 10 columns:

    ...
  14. Replies
    12
    Views
    4,738

    global variables and multidimensional arrays

    Hi, can someone please tell me why I cant define this as a global variable? And if there is some other way to do it...



    char scherm[35][67];
  15. Replies
    1
    Views
    1,144

    question about c functions

    Hi all, I've got a little question about functions in c, I wrote a whole "program" (well, not so big, but still), which I am not going to post here, it's not important, instead I will try to explain...
  16. Replies
    8
    Views
    1,127

    yes, i see the problem, it's a common made...

    yes, i see the problem, it's a common made mistake for c newbies, I've read it on several sites, I hope I won't forget the null terminator in the future

    hmm, this shows that I've got much to...
  17. Replies
    8
    Views
    1,127

    My original idea was trying to modify one element...

    My original idea was trying to modify one element of a character string, but since that didn't seem to work out, I first tried this, now, then, can you tell me how to change an element of a string?
    ...
  18. Replies
    8
    Views
    1,127

    ok, it's not a string, but still, if I try to...

    ok, it's not a string, but still, if I try to ouput "geheel" the normal way:



    printf("%d",getal);


    the compiler says:
    "format '%d expects type 'int' but argument 2 has type 'int *'"
  19. Replies
    8
    Views
    1,127

    C string question

    Hi, I recently started learning programming in C, I am not a programming newbie, just new to C, now here is my question:

    I am experimenting with strings, because they work in an entirely different...
Results 1 to 19 of 20