Stream Manuplators - Introduction to Programming - Lecture Slides, Slides of Computer Programming

Stream Manipulators, Manipulator With Arguments, Inline Manipulator, Number System, White Space Manipulator, Set Precision Manipulator, Setbase, Input Output state flags are the key points of this lecture.

Typology: Slides

2011/2012

Uploaded on 11/06/2012

somo
somo 🇮🇳

4.8

(4)

70 documents

1 / 51

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Introduction to Programming
Lecture 36
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33

Partial preview of the text

Download Stream Manuplators - Introduction to Programming - Lecture Slides and more Slides Computer Programming in PDF only on Docsity!

Introduction to Programming

Lecture 36

#include <iostream.h> #include <fstream.h>

 cin.eof ( ) ;  cin.fail ( ) ;  cin.bad ( ) ;  cin.good ( ) ;  cin.clrear ( ) ;

Manipulators

float PI = 3.1415926 ;

cout << flush ;

Manipulator With Arguments

cout.flush ( ) ;

Number System  Binary  Decimal  Octal  Hexadecimal

#include <iostream.h>

#include <iomanip.h>

main ( )

int i = 10 ; Output

cout << oct << i << endl ; 12

cout << hex << i<< endl ; A

cout << dec << i << endl ; 10

Example

WS Manipulator