Why won't it execute?
Type: Posts; User: tameeyore
Why won't it execute?
I am having trouble bring information from a file into a structure and printing it out on the screen. How is that done? Here is the code I have that has the structure and the open statement. But...
What is a final? please advise.
I am getting the following error when I compile my program on gcc. two or more data types in declaration of `main'
Also I want to print out the structure in one of my cases but won't let me call the...
I have got the program running but when I enter the filename of the txt file it gives me a segmentation fault and ends.. Could someone please help me out..
#include <stdio.h>
#include...
no does not support line by line debugging using a unix system.
I am getting a segmentation fault when I try to run the program.. IT compiles fine but when i run it it gives me a segmentation fault.
#include <stdio.h>
#define START 0
#define WALL -1...
So how do I correct it or what can I do to fix it.. Your statement was a little vague for me... I am still new at this so I am a little slow... sorry.... :confused:
I am not passing the structure though.. I am only passing the things in the structure.. such as the students, grade1, grade2, grade3.... Then what do I have to do to get rid of the errors and call...
sorry misunderstood.. Here you go..
struct grades /*Structure to put the text into.*/
{
char students[30];
int grade1;
Maybe this is more help....
void readfile(char students[30], int grade1,int grade2,int grade3);/*function declaration*/
yes I am passing the array for the first argument and then integers for the rest... Now it can be no more then 30 students... ..
Thank you that worked great now I have another issue.. I am trying to call a function and I am getting the following errors.
grades.c: In function `main':
grades.c:43: incompatible type for...
If I make them both the same it gives me a new error..
grades.c:18: warning: `struct grades' declared inside parameter list
grades.c:18: warning: its scope is only this definition or...
Line 18: int sorting(char students[30], int grade1, int grade2, int grade3);
Line 89 int sorting(struct grades students[30], int grade1, int grade2, int grade3)
Line 18 is the def of the...
getting this error message. Don't understand why?
grades.c:89: conflicting types for `sorting'
grades.c:18: previous declaration of `sorting'
int sorting(struct grades students[30], int...
I have a function to determine a letter grade for each individual grades however I am not sure I have it set up the best possible way.. the errors I am getting are at the bottom.. There is three test...
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
void readfile(char name, int grade1,int grade2,int grade3);
int meangrade(int grade1,int grade2,int grade3);
void...
I am getting the following errors when I compile my code above and I can't figure out what is the problem.
grades.c:18: conflicting types for `qsort'...
still having issues with the sort function.
Hope this is better:
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
void readfile(char name, int grade1,int grade2,int grade3);
int meangrade(int grade1,int...
Hi, I am trying to make a grade management program and I have everything but my sort function is not working and I am getting a parse error at the end of input.. Could someone please help......
Hello,
I am writing a grade management program. I have a structure but I keep getting an error.
struct grades
{
char students[30];
int grade1;
int grade2;
int...
I am trying to check for valid date.. if it is not valid then I ask them to reenter the date. Otherwise it should ask for the deposit. But when I enter a bad date and then reenter the date it...
I got case 4 to work but my calculations are totally off... Help???