actually it seems that this code doesn't run on window which is very odd. It ran fine with gcc on linux as some people i asked ran it on there. Unfortunately i dont have linux, and this code was not...
Type: Posts; User: khoavo123
actually it seems that this code doesn't run on window which is very odd. It ran fine with gcc on linux as some people i asked ran it on there. Unfortunately i dont have linux, and this code was not...
so i have this code
#include <stdio.h>
#include <stdlib.h>
#define MAX 21
#define MAX_ELEM 8
#define SCORE 12
/*
This program read input from FILE of a skating competition. Then it calculate the sum
of the baseval value and technical scores of each skater. Finally it output the sorted list
of...
#include <stdio.h>
#include <stdlib.h>
#define MAX 21
#define MAX_ELEM 8
#define SCORE 12
#define NUM_SKATER 4
#define BASE 3.1
typedef struct{
so after i make changes to this
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#define MAX 20
typedef struct
well my instructor ask to dynamically allocate the firstname though
so shouldn't it be pointer to char ?
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#define MAX 20
typedef struct
{
int ID;
char* firstname;
i still have a question about this though
can any one interpret this because it kinda confusing
Also write a main function that inputs your family name, calls this function
what does that...
may be i need to use a system "pause"
yes my console disappear before i can read the output
/*
Dang Vo
[email protected]
assign 6
This program remove the last character of a string by moving the NULL character
to the left 1, finally it output the string as missing the last...
#include <stdio.h>
char* LastcharDel(char* name);
int main ()
{
// declarations
char name[20];
Make the following work by changing only the sort function and its prototype. (Work means that the elements in the original array of floats are not changed but remain in their original order. Only...
/*
Dang Vo
Lab 2
[email protected]
*/
#include<stdio.h>
#include<stdlib.h>
#define MAX 50
while your at it can you tell me what i did wrong for my calctotal function also and i fixed the sort function it worked now cant really see any mistake myself now since my eyeball is rolling out. i...
like this ?
/*
Dang Vo
Lab 2
[email protected]
*/
#include<stdio.h>
/*
Dang Vo
Lab 2
[email protected]
*/
#include<stdio.h>
#include<stdlib.h>
#define MAX 50
#include <stdio.h>
#include <stdlib.h>
#define NUM_PATIENT 100
#define GIVEN_HR 220
#define LEN 6
void getdata(FILE*spData, int ID[], float AveOfAveHR[], int dayExcrsHR[], int...
#include <stdio.h>
#include <stdlib.h>
#define MAX_PATIENT 100
#define HR_GIVEN 200
#define LEN 5
void getData(FILE* spData, int ID[], float aveofAveCommutingHR[], int dayexcers[],...
can you suggest a way that i can make this valid
#include<stdio.h>
#include<stdlib.h>
#define MAX 50
#define MAX_COL 20
#define SCORE 5
#define TOTCALC 3
int getData(FILE* spData, char name[][MAX_COL], float difficulty[], float...
#include<stdio.h>
#include<stdlib.h>
#define MAX 50
#define MAX_COL 20
#define SCORE 5
int getData(FILE* spData, char name[][MAX_COL], float difficulty[], float score[][SCORE]);
void...
well im not sorting the name array though and also every work fine if you take you sort function out
also i dont know why the data is not in order when i post it on here
#include<stdio.h>
#include<stdlib.h>
#define MAX 50
#define MAX_COL 20
#define SCORE 5
int getData(FILE* spData, char name[][MAX_COL], float difficulty[], float score[][SCORE]);
void...
why are you so aggressive?