#include <stdio.h>
#include <stdlib.h>
int f(int *d, int c, int b, int *a);
int main(void){
int a=1, b=3, c=2, d=4, e=5;
e = f(&a, f(&b,a,e,&c), e, &d);
printf("a =%d b=%d c=%d d=%d...
Type: Posts; User: dl27
#include <stdio.h>
#include <stdlib.h>
int f(int *d, int c, int b, int *a);
int main(void){
int a=1, b=3, c=2, d=4, e=5;
e = f(&a, f(&b,a,e,&c), e, &d);
printf("a =%d b=%d c=%d d=%d...
ok ill try to make things as simple as possible and go through notes... thanks for the help
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX_LEN 30
#define SIZE 20
struct employee {
char first[MAX_LEN];
char last [MAX_LEN];
double payperhr;...
so bascially just keep the scan and everything needed for the scan of the char... correct?
* that lil guy?
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int main(){
char state[30];
printf("enter:");
scanf("%s", state);
So far i haven't started the calculation of the program but more worried about getting the first and last name to copy over to the output file w2.... even when i try to put it into a printf output of...
ahh ok thanks.. does any one know what would the basic format of sending a structure though a fucntion be? kinda as in the case above but not really important more for just trying to see another...
I am writing a program that is supposed to read info from a file clock.txt that has the number of employees then a name and then payrate and then another name and payrate. I have a struct
...
For some reason throwing files into the structs and with functions is jamming me from being able to completely think this program through but thanks for the help im gonna try working the rest out...
so when i am printing, i am printing to the file? therefor i should have fp= fopen("clock.txt", "w"); instead of "r"?
yes it was spelled wrong... its located above int main
when I compile it shouldn't the information from the file be on the output? cause right its just showing the system("pause") function
since this is a need help page... stuck on a little homework right now.. but just seeing if someone can maybe help me get past this not give me the answer. but in int main i have an Linker error...
since this is a need help page... stuck on a little homework right now.. but just seeing if someone can maybe help me get past this not give me the answer. but in int main i have an Linker error...