Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
otsall
/
iax0583
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a99b2b4d
authored
Nov 19, 2018
by
otsall
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed 18.11
parent
33ccc0c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
Homework2/homework2.c
Homework2/homework2.c
View file @
a99b2b4d
...
@@ -11,8 +11,6 @@ void busiestCarrier(int sum[], int carrier);
...
@@ -11,8 +11,6 @@ void busiestCarrier(int sum[], int carrier);
int
main
()
{
int
main
()
{
int
dest
,
int
dest
,
carrier
;
carrier
;
//this is here because exciting the fillMatrix function otherwise changes the value of dest or carrier
int
cartonBuffer
[
MAXSIZE
];
//user inputs or file contains the number of destinations and carriers, which can only be positive and nonzero
//user inputs or file contains the number of destinations and carriers, which can only be positive and nonzero
puts
(
"please input the number of destinations"
);
puts
(
"please input the number of destinations"
);
scanf
(
"%d"
,
&
dest
);
scanf
(
"%d"
,
&
dest
);
...
@@ -28,7 +26,7 @@ int main() {
...
@@ -28,7 +26,7 @@ int main() {
}
}
//an empty array called flightPlan is created in addition to an array called sum which will be used later
//an empty array called flightPlan is created in addition to an array called sum which will be used later
int
flightPlan
[
dest
][
carrier
],
int
flightPlan
[
dest
][
MAXSIZE
],
sum
[
carrier
];
sum
[
carrier
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment