-
Notifications
You must be signed in to change notification settings - Fork 0
/
tut8.cpp
42 lines (31 loc) · 1.09 KB
/
tut8.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
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
// int a = 35;
// cout<<"The value of a was: "<<a<<endl;
// a = 48;
// cout<<"The value of a is: "<<a<<endl;
//********Constants********
// here value of a will never change throughout the code
// const int a = 35;
// cout<<"The value of a was: "<<a<<endl;
// a = 48;
// cout<<"The value of a is: "<<a<<endl;
//********Manipulators in C++********
// Helps format display text
// int a = 3, b = 76, c = 1234;
// cout<<"The value of a without setw is: "<<a<<endl;
// cout<<"The value of a without setw is: "<<b<<endl;
// cout<<"The value of a without setw is: "<<c<<endl<<endl;
// // setw-- set width
// cout<<"The value of a with setw is: "<<setw(4)<<a<<endl;
// cout<<"The value of a with setw is: "<<setw(4)<<b<<endl;
// cout<<"The value of a with setw is: "<<setw(4)<<c<<endl;
//********Operater Precedence********
// int a = 3, b = 4;
// int c = ((((a*5)+b)-45)+87);
// cout<<c;
return 0;
}