-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path0061.cpp
More file actions
42 lines (29 loc) · 737 Bytes
/
0061.cpp
File metadata and controls
42 lines (29 loc) · 737 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
#include <iostream>
/*====================================
* eXcript.com
* fb.com/eXcript
* ====================================*/
using namespace std;
struct Janela{
string titulo;
int left;
int top;
};
int main() {
Janela j1;
j1.titulo = "Windows";
j1.left = 0;
j1.top = 0;
Janela j2;
j2.titulo = "Linux";
j2.left = 250;
j2.top = 250;
cout << "A soma é igual: " << j2.left + j2.top << endl;
cout << "O titulo e: " + j1.titulo << endl
<< "Left: " << j1.left << endl
<< "Top: " << j1.top << endl;
cout << "O titulo e: " + j2.titulo << endl
<< "Left: " << j2.left << endl
<< "Top: " << j2.top << endl;
return 0;
}