-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
121 lines (121 loc) · 2.46 KB
/
main.cpp
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
////#define _USE_MATH_DEFINES
//#include <string>
//#include <iostream>
//#include <stdlib.h>
//using namespace std;
////#include <GL/glut.h>
////#include <math.h>
//
////
////#include "Helper.h"
////
////int WIN_HEIGHT = 400;
////int WIN_WIDTH = 400;
////
//////const char* string = ;
////void text(void);
////
////
////int main(int argc, char** argv) {
//// glutInit(&argc, argv);
//// glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
//// glutInitWindowSize(WIN_WIDTH, WIN_HEIGHT);
//// glutInitWindowPosition(100, 100);
//// glutCreateWindow("Scoreboard");
//// glClearColor(0.0, 0.0, 0.0, 1.0);
//// glMatrixMode(GL_PROJECTION);
//// glLoadIdentity();
//// glOrtho(0.0f, 1000, -1200.0f, 100.0f, 1.0f, 0.0f);
//// glutDisplayFunc(&text);
//// glutMainLoop();
//// return(0);
////}
////
////void text(void) {
////
//// glClear(GL_COLOR_BUFFER_BIT);
//// glPushMatrix();
//// for (const char* p = "Scoreboard"; *p; p++)
//// glutStrokeCharacter(GLUT_STROKE_ROMAN, *p);
//// glPopMatrix();
//// glFlush();
////}
//
//
//// For player class
//class Player
//{
//private:
// std::string name;
// float average;
// char team;
//public:
// Player(std::string n, float a, char t)
// {
// name = n;
// average = a;
// team = t;
// }
// void setname(std::string n)
// {
// name = n;
// }
// void setaverage(float a)
// {
// average = a;
// }
// void setteam(char t)
// {
// team =t;
// }
// std::string getname()
// {
// return name;
// }
// int getaverage()
// {
// return average;
// }
// char getteam()
// {
// return team;
// }
// void input(std::string n, float a, char t)
// {
// name = n;
// average = a;
// team = t;
// }
// void Change(std::string n, float a, char t)
// {
// name = n;
// average = a;
// team = t;
// }
// void Display()
// {
// cout << "Player Name is: " << name << endl;
// cout << "Player Average is: " << average << endl;
// cout << " Player team is: " << team << endl;
// }
//};
//
//int main()
//{
// string name;
// float average;
// char team;
// cout << "Enter NAme of the player: " << endl;
// //cin >> name;
// cout << "Enter average of the player: " << endl;
// //cin >> average;
// cout << " Enter team of the player: " << endl;
// //cin >> team;
// Player obj(name, average, team);
// obj.input(name, average, team);
// obj.Change(name, average, team);
// obj.Display();
//
// return 0;
//
//}