Search:

Type: Posts; User: alzar

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    1,756

    no . But i can tell what the makefile.inc tells...

    no . But i can tell what the makefile.inc tells if i open it with word:

    CC = g++

    # this line gives compiler optimizations that are geared towards g++ and Pentium4
    # computers. Comment it out...
  2. Replies
    12
    Views
    1,756

    OS is linux compiler is gcc there is no IDE

    OS is linux
    compiler is gcc
    there is no IDE
  3. Replies
    12
    Views
    1,756

    Thanks abachler. It works the way you suggested...

    Thanks abachler. It works the way you suggested me.
    Is there any other way?

    also anyone for my second question?
  4. Replies
    12
    Views
    1,756

    @laserlight yes, i know this , but i am asking...

    @laserlight
    yes, i know this , but i am asking you how the compiler see the header file.(the header file is in another folder)
  5. Replies
    12
    Views
    1,756

    compile multiple files

    I would like to ask you this: how can i compile a program that includes a header that i make?
    Example: we have test.c and we need for the compile the header that is in another folder.How can i tell...
  6. Replies
    2
    Views
    1,494

    Thank you so much this is the site i want. Thanks...

    Thank you so much this is the site i want. Thanks again!!!!
  7. Replies
    2
    Views
    1,494

    question about a site about C

    A strange post :)
    before some months i see in a post in this forum about a site which have some problems about C. This site has some problems ( i think 100 problems ) that you must program with C...
  8. Replies
    9
    Views
    1,867

    Thanks i understand it!!

    Thanks i understand it!!
  9. Replies
    9
    Views
    1,867

    How can this happen? we are in a while loop ...

    How can this happen?
    we are in a while loop while(!feof(my_file)) and this means that the End of file not reached
    ???
  10. Replies
    9
    Views
    1,867

    yes but i must use feof (it is for an execise and...

    yes but i must use feof (it is for an execise and says that i must use feof)
  11. Replies
    9
    Views
    1,867

    question about feof

    if we have this code for files

    while(!feof(from);
    ch=fgetc(from);
    if(ferror(from){
    printf("error reading source file\n");
    exit(1);
    }
    if(!feof(from)) fputc(ch,to)/*IN...
  12. Replies
    5
    Views
    1,481

    thanks.So we can't say that is something like...

    thanks.So we can't say that is something like this I said (modulo....).
    These a) and b) that you tell me i can make them.

    and i can't ask my "instructor" because i don't know him.This exercise i...
  13. Replies
    5
    Views
    1,481

    I can't ask the instructor.So for this reason i...

    I can't ask the instructor.So for this reason i am asking here if anyone understand something other? I was thought also something about cycle arithmetic with characters and the USE of modulo(%) like...
  14. Replies
    5
    Views
    1,481

    recursive function with strings

    I have to write this recursive function:
    write a recursive function called shift which takes a string and rotates each character cycle one position at the time.The problem is that i don't understand...
  15. Replies
    21
    Views
    3,210

    Thank you so match Adak i try and other sentences...

    Thank you so match Adak i try and other sentences and it seems to work fine.It was so easy.I was trying with the pointer new and you didin't need to use this pointer.Thanks!
  16. Replies
    21
    Views
    3,210

    i make a try but it doesn't work. I am confused...

    i make a try but it doesn't work. I am confused with the loop.

    int len,l;
    char t[23]="hello world how are you";
    int i, last,count;
    char *words[10];
    char *new;

    ...
  17. Replies
    21
    Views
    3,210

    i fix it char *new; i=0; ...

    i fix it

    char *new;

    i=0;
    len=strlen(t);
    while(i<len && t[i]!='\0'){
    if(t[i]== ' '){
    last=i;
    t[i]='\0';
  18. Replies
    21
    Views
    3,210

    i don't understand. You mean that i should use...

    i don't understand. You mean that i should use if(t[i]== ' ') or something else?
  19. Replies
    21
    Views
    3,210

    i=0; len=strlen(t); while(i

    i=0;
    len=strlen(t);
    while(i<len){
    if(t[i]= ' '){
    last=i;
    t[i]='\0';}
    printf(t);
    i++;
    }
  20. Replies
    21
    Views
    3,210

    so i need malloc to allocate memory for *words[0]...

    so i need malloc to allocate memory for *words[0] ?
    Maybe the idea of array *words[3] is not so good .Is there a way to do this without the use of malloc

    some changes

    int len,l;
    char...
  21. Replies
    21
    Views
    3,210

    int len; char t[10]="hello wor"; int i,...

    int len;
    char t[10]="hello wor";
    int i, j , last;

    char *words[3];

    i=0;
    len=strlen(t);
    while(t[i]<len){
    if(t[i]= ' '){
  22. Replies
    21
    Views
    3,210

    I can use only strlen and strcpy from str...

    I can use only strlen and strcpy from str functions
    So you say that is possible to have an array like that : "hello/0my/0name/0is/0"
    But how i pass the string to the array from strings( char...
  23. Replies
    21
    Views
    3,210

    @matsp i must write my function @IceDane Yes...

    @matsp
    i must write my function

    @IceDane
    Yes i thought something like this but i think that:
    every time i find a space i must replace it with \0 or not? Because i must pass this word as a...
  24. Replies
    21
    Views
    3,210

    something like strtok

    The problem:
    I have a string in a pointer or in an array.I want to seperate the words from this string and drop them into a list.Example: we have string "my name is Bond". I want to seperate the...
  25. Replies
    11
    Views
    3,964

    Thanks I understand it

    Thanks I understand it
Results 1 to 25 of 63
Page 1 of 3 1 2 3