like this?
13232
Type: Posts; User: Cdd101
like this?
13232
well I found one mistake i had
int sort(struct flight *my_flight, int size_of_array)
{
int i, j;
struct flight x;
for (i = 0; i < size_of_array; i++){
for (j = 0; j <...
My bad! It's XCode. gcc 4.2.1
The reason being is that it says that my program is right
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#define NFlights 10
:| Well i'm stupid. Thank you so much!
Michael 9999 10 21 1991 10 28 0 0
Armin 8888 10 21 1991 10 27 0 0
Armin 8888 10 21 1991 10 27 0 0
Michael 9999 10 21 1991 10 28 0 0
Took forever to print though
I only have my browser and that xcode file opened it took around 10 minutes to calculate it
It took forever to print it out but it got the right answer. Any way to fix that?
struct date
{
int month;
int day;
int year;
int hour;
int minute;
int meridian;
};
This is how I did your way
int lessThan(struct student S1 , struct student S2) {
struct date A = S1.date_of_enrollment;
struct date B = S2.date_of_enrollment;
struct date C =...
It sorts perfectly until it gets to time(my way). Trying your way now.
Your way would be better than this?
int lessThan(struct student S1 , struct student S2) {
struct date A = S1.date_of_enrollment;
struct date B = S2.date_of_enrollment;
struct date...
The meridian is supposed to be included on the homework assignment sadly.
You entered :
Gonzalo 0 0 0 0 0 0 0 0
Gonzalo 0 0 0 0 0 0 0 0
Gonzalo 0 0 0 0 0 0 0 0
Chavez 9999 10 21 1991 10 28 0 0
That's what it prints
alright pal thank you! I'll report back
This is my code and it work
#include <stdio.h>
struct date
{
int month;
int day;
Sorry about that just really fed up with this assignment. We don't really get taught pointers and he gives us stuff that he hasn't covered. Basically it prints out the second list not the entire...
Hey guys so the next part of the assignment asks me to create a function to add and remove students. Any way on the add function to make it print out the completed list. So if I add 2 first and then...
He gave us till otmorrow at 2pm which is great. Just have one more thing to do. I really need to tkae a break from this. Was putting me in a horrible mood.
Wow...I'm so stupid..
I'm so sorry, I basically just copied what you put and it doesn't work. I'm fed up with this assignment at the moment.
//
// main.c
// Homework 10_3
//
// Created by Gonzalo Chavez on...
So i will have to do that with each?
Seems I keep posting the wrong code.
This is what I get now
How many students in the Class?: 2
Enter first name: Gonzalo
Enter last name: Chavez
Enter id: 9999
Enter grade: 99
My bad posted the wrong one.
#include <string.h>
#include <stdio.h>
#define MAXSTUD 20
typedef struct
//
// main.c
// Homework 10_3
//
// Created by Gonzalo Chavez on 11/29/13.
// Copyright (c) 2013 Gonzalo Chavez. All rights reserved.
//
#include <string.h>