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 =...
Type: Posts; User: cagurtay
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 =...
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...
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...
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...
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...
ok sorry. i didnt read that :(.
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)
...