update
This commit is contained in:
parent
2992f4f408
commit
4f46de8d00
3330 changed files with 394553 additions and 76939 deletions
33
.config/Code/User/History/57b3d283/rAs9.cpp
Normal file
33
.config/Code/User/History/57b3d283/rAs9.cpp
Normal file
|
@ -0,0 +1,33 @@
|
|||
/*
|
||||
Rafay Ahmad
|
||||
23I-2526
|
||||
*/
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
class CustomerList{
|
||||
int* customerIds;
|
||||
int size;
|
||||
int capacity;
|
||||
public:
|
||||
CustomerList() : size(0), capacity(10){
|
||||
customerIds = new int[capacity];
|
||||
}
|
||||
~CustomerList(){
|
||||
delete[] customerIds;
|
||||
}
|
||||
|
||||
void addCustomer(int customerId){
|
||||
if(size >= capacity) increaseCapacity();
|
||||
customerIds[size] = customerId;
|
||||
size++;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
int main(){
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue