-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStkAmnt.cpp
More file actions
29 lines (25 loc) · 884 Bytes
/
StkAmnt.cpp
File metadata and controls
29 lines (25 loc) · 884 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*******************************************************************************
* Author : Jesus Lopez *
* Assignment : Project One Verify Stock Amount *
* Date : 11/5/17 *
* Class : CSC 17-A *
******************************************************************************/
#include "ProjHead.h"
bool StkAmnt(Stock* s, int d)
{
bool sell = false; //Calc - Whether user can sell stocks.
//Checks Day
if(d == 0)
return sell;
//Checks if Stock Count > 0
for(int i = 0; i < 9; i++)
{
if(s[i].count > 0)
{
sell = true;
return sell;
}
}
//Return False
return sell;
}