-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprogram.cpp
More file actions
49 lines (41 loc) · 861 Bytes
/
program.cpp
File metadata and controls
49 lines (41 loc) · 861 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
37
38
39
40
41
42
43
44
45
46
47
48
49
// program.cpp : main project file.
#include "stdafx.h"
#include <cstdlib>
#include <iostream>
#include <gcroot.h>
#include "program.h"
#include "table.h"
#include "Form1.h"
using namespace prog;
using namespace program;
list::~list()
{
node *temp = Head;
while (temp != NULL)
{
temp=Head->Next;
delete Head;
Head=temp;
}
}
void list::Add(info *in)
{
node *temp = new node;
temp->fields = *in;
temp->Next = NULL;
if (Head != NULL)
{
Tail->Next = temp;
Tail = temp;
}else Head=Tail=temp;
}
[STAThreadAttribute]
int main(array<System::String ^> ^args)
{
// Enabling Windows XP visual effects before any controls are created
Application::EnableVisualStyles();
Application::SetCompatibleTextRenderingDefault(false);
// Create the main window and run it
Application::Run(gcnew Form1());
return 0;
}