-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
36 lines (32 loc) · 795 Bytes
/
main.cpp
File metadata and controls
36 lines (32 loc) · 795 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
30
31
32
33
34
35
36
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: main.cpp
* Author: Zafrir
*
* Created on 1 ינואר 2017, 16:13
*/
using namespace std;
#include <cstdlib>
#include <iostream>
#include<vector>
#include "MemPool.h"
#include"Operators.h"
#include "MemoryManager.h"
int main(int argc,char** argv) {
char* s = new char[2];
// char* s1 = new char[2];
// char* s2 = new char[4];
s[0] = 'c';
s[1] = 'a';
cout<<s[0]<<" , "<<s[1]<<endl;
delete[] s;
//cout<<s[0]<<" , "<<s[1]<<endl;
char* n = new char[2];
n[0] = 'b';
n[1] = 'd';
cout<<s[0]<<" , "<<s[1]<<endl;
}