100 was miswritten, definition is "size=0". sorry for that
Type: Posts; User: creon
100 was miswritten, definition is "size=0". sorry for that
Thank you for your time again. I'll look up qsort().Now that is how my code looks like after I did as you said.
#include<stdio.h>
#include<string.h>
#include<locale.h>
int main ()
{
...
hi again, thanks for the help. strcoll worked perfect and problem is solved, but i've got a new one. now 002.txt is the list of words to be sorted. There are 4600 lines in the list and one word each....
I did of course. I've learned that i need to call function setlocale(LC_ALL,""). And it makes the program recognize turkish letters which it already did by some other way.Now it puts the turkish...
quzah, i still don't know how to use locale. please explain
yeah but can you explain me how to use this locale thing. I include the locale.h first. Then what must i do?
Hello. I've written a program that sorts the words it took from a file alphabetically. And it works fine with standart characters. But I am from turkey and I need it to recognise turkish characters...
i think this is the troubled loop:
while(j<size){
i=j;
while(i>0){
if(!strcmp(array[j],array[j-i])){
...
Hello. I've written a small program with c using dev-c++ yesterday and it was working proper so i know there is no problem about the code. I've finished it and turned off my pc. When I run it today,...
yeah, i saved it as .c and deleted the (char*) part and it works corectly. thanks. But can you explain what "my way" does? Since I've copied it from an other source code, I don't know what it...
well, i guess i've solved my problem. i needed to add (char*) just before malloc:). Thank you very much for helping me out.
Thnx for your answers. When I use either of the ways, I get the same error message " invalid conversion from `void*' to `char*' " for the line with the command malloc. Do you know why thi is?
Hi, I would definitely use some help on this:
I've got a list of words in a .txt file. 1 word for 1 line. First I count the \n's to get the number of words and then I put the words to the array I...