Search:

Type: Posts; User: cagurtay

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    14,767

    void student_swap(struct student *x){ int...

    void student_swap(struct student *x){
    int z,y,temp;
    char temp2[10];
    for(z=0; z<10; z++)
    for(y=0; y<9; y++){
    if(x[y].mid1>x[y+1].mid1){
    temp =...
  2. Replies
    10
    Views
    14,767

    I am sorry but i didnt understand what am i...

    I am sorry but i didnt understand what am i suppose to do.
    Am i need to declare new "student y" and make a function

    void student_swap(struct student *x, struct student *y); to swap what?

    i...
  3. Replies
    10
    Views
    14,767

    Thank you but i have another problem now, i am...

    Thank you but i have another problem now, i am trying to use that struct in a function that i made to sort the numbers but command-line is crashing...

    this is my function :

    void bubsort(struct...
  4. Replies
    10
    Views
    14,767

    AH! I was using %c instead of %s . Thank you! ...

    AH! I was using %c instead of %s .
    Thank you!

    for (int i=0;i<10;i++){
    fscanf(file,"%d %s %s %d %d %d\n",&x[i].id,&x[i].name,&x[i].surname,&x[i].mid1,&x[i].mid2,&x[i].final);
    printf...
  5. Replies
    10
    Views
    14,767

    Scanning(copying) a .txt file to struct array

    As the title says , i am trying to scan a .txt file which includes characters and integers and copy that to a struct array ,
    file is like this :

    100201 asdsad das 40 50 70
    100202 fdgdf hsdhdfs...
  6. Thread: Homework

    by cagurtay
    Replies
    3
    Views
    1,583

    ok sorry. i didnt read that :(.

    ok sorry. i didnt read that :(.
  7. Thread: Homework

    by cagurtay
    Replies
    3
    Views
    1,583

    Homework

    Hello there,
    my teacher gave us a homework at C but i couldnt figure that out
    can any one please solve it? or give me directions
    Thank you in advance.

    ln n/e^n (from n=1 to infinity)
    ...
Results 1 to 7 of 7