Search:

Type: Posts; User: programinproces

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    1,215

    Concatenate strings in c

    I am getting error"incompatible integer to pointer conversation..." and don't know how to fix this. In my code, user inters line like this (3+3*(55-52)) I need to separate number from the line so I...
  2. Replies
    9
    Views
    2,753

    Thanks all for your valuable suggestion, Now I'm...

    Thanks all for your valuable suggestion, Now I'm getting little higher in the pointer. Can you please, suggest me for my illusion about the pointer?
    lets say, I have function called fn1(), fn2() and...
  3. So, why don't you visit this...

    So, why don't you visit this http://cboard.cprogramming.com/c-programming/88495-development-process.html
  4. Replies
    9
    Views
    2,753

    SO, if I declare this line as a global variable...

    SO, if I declare this line as a global variable does that work?
    struct student line[i];
    this way.

    struct student{
    int id;
    }line[i]; // to do this way i am getting complain about [i].
  5. Replies
    9
    Views
    2,753

    Thanks. But I have another function witch loads...

    Thanks. But I have another function witch loads the struct value from the line of text file.

    int load_struct() //this function loads structs element from the...
  6. Replies
    9
    Views
    2,753

    more on struct.

    how to print struct from another function?
    let's say I have code this way

    struct student{
    int id // simple example
    };
    main(){
    modify_data(); // calls the function.
    }
    lode_struct_function()
  7. Replies
    4
    Views
    836

    aauch! you brought my happiness back. Thank you...

    aauch! you brought my happiness back. Thank you very much!
  8. Replies
    4
    Views
    836

    Thanks for your kind reply. 1. line_count...

    Thanks for your kind reply.
    1. line_count function is doing good.
    2.there is no issue on file open
    3. I remove and see if strcpy was the problem but still the same result.
    here I keep printf...
  9. Replies
    5
    Views
    762

    int i=0; while(i

    int i=0;
    while(i<strlen(word))
    {
    i++;
    }
  10. Replies
    5
    Views
    762

    Let's change your code. char word[20]; ...

    Let's change your code.

    char word[20]; char *p;
    puts("type a word :");
    scanf("%s",word);
    p=word;

    printf("your word contain %s character ",p);
    this...
  11. Replies
    4
    Views
    836

    struct from file line, problem.

    int load_struct(){
    char file_line[50];
    int x=0;
    char*line_parts;
    int i = line_count(); // gives the value of total line in the file
    ...
  12. Replies
    5
    Views
    793

    Thanks and great appreciation.

    Thanks and great appreciation.
  13. Replies
    5
    Views
    793

    Thanks vart...

    Thanks vart This time it works. I don't know where I was lost:)
  14. Replies
    5
    Views
    793

    I try that but it was error then I went this way....

    I try that but it was error then I went this way. Is it shouldn't be this way?
  15. Replies
    3
    Views
    700

    ! means not. Like if (True) and if(!true). Hope...

    ! means not. Like if (True) and if(!true). Hope you get it.
  16. Replies
    5
    Views
    793

    file I/O, writing to the file.

    I have to write user given data to a .txt file. I did with fprintf but only string did not write in the file? here is my code.
    #include <stdio.h>
    #include <stdlib.h>
    #include <ctype.h>
    #include...
  17. You can think this way. 1. within the scanf...

    You can think this way.
    1. within the scanf function a. data type (i.e. "%d" for the integer) b. assign the value to the variable (i.e. if age is variable, &age).
    2. declare the variable type...
  18. Replies
    3
    Views
    723

    hi, anduril462. That's...

    hi, anduril462.
    That's true. I respect your views. Actually I found it is wrong code, since I am a newbie on c, I am not 100% sure. So I need to make sure for that. I hope...
  19. Replies
    3
    Views
    723

    Is it the right ans? if not why?

    Q:The least common multiple (LCM) of two integers is the smallest number that is divisible
    by both those numbers. Write a function called LCM that takes two positive integers as
    input and return...
Results 1 to 19 of 19