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
| Define a class complex with two data members real & imag.
#include #include class Ccomplex{ private : double real, img; public : Ccomplex(){} Ccomplex( double r, double i){ real = r; img = i; } friend Ccomplex operator+(Ccomplex &, Ccomplex &); friend Ccomplex operator-(Ccomplex &, Ccomplex &); friend Ccomplex operator*(Ccomplex &, Ccomplex &); friend Ccomplex operator*(Ccomplex &, double ); friend ostream& operator<<(ostream &, Ccomplex &); friend istream& operator>>(istream &, Ccomplex &); }; Ccomplex operator+(Ccomplex &c1, Ccomplex &c2){ return Ccomplex(c1.real + c2.real, c1.img + c2.img); } Ccomplex operator-(Ccomplex &c1, Ccomplex &c2){ return Ccomplex(c1.real - c2.real, c1.img - c2.img); } Ccomplex operator*(Ccomplex &c1, Ccomplex &c2){ return Ccomplex(c1.real * c2.real, c1.img * c2.img); } Ccomplex operator*(Ccomplex &c1, double num){ return Ccomplex(c1.real * num, c1.img * num); } ostream& operator<<(ostream &Mout, Ccomplex &Oc){ return Mout<< "\n Real: " < } void main(){ Ccomplex Oc; Ccomplex Oc1(3.1, 4.1); Ccomplex Oc2(4.2, 5.7); double num= 10; clrscr(); cout<< "\n Sum of two Complex No's:- " ; Oc = Oc1 + Oc2; cout< cout<< "\n\n Difference of two Complex No's:- " ; Oc = Oc1 - Oc2; cout< cout<< "\n\n Product of two Complex No's:- " ; Oc = Oc1 * Oc2; cout< cout<< "\n\n Product of Complex No with Constant:-" ; Oc = Oc1 * num; cout< getch(); } |
Global Windows Shortcuts Win+1, 2, 3, 4, etc. will launch each program in your taskbar. It is helpful then to keep your most used programs at the beginning of your task bar so you can open them one right after another. This also works in Windows Vista for the quick launch icons. Win+Alt+1, 2, 3, etc. will open the jump list for each program in the taskbar. You can then use your arrows to select which jump list option you want to open. Win+T will cycle through taskbar programs. This is similar to just hovering over the item with your mouse but you can launch the program with Space or Enter. Win+Home minimizes all programs except current the window. This is similar to the Aero shake and can be disabled with the same registry key. Win+B selects the system tray which isn’t always useful but can come in very handy if your mouse stops working. Win+Up/Down maximizes and restores down the current window so long as that window has the option to be maximized. It is exactly t...
Comments
Post a Comment
share your thoughts ....