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
Type: Posts; User: LowLife
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
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...
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...
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...
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...
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...
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...
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
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;,...
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...
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...
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];
...
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:
...
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];
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...
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...
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?
...
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 *'"
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...