Ask a question from expert

Ask now

new features of this C++ programming

Streaming Operator

12 Pages1032 Words16 Views
   

Added on  2022-08-12

About This Document

This is lab book assessment. I had attached 3 files which are: 1. Lab 2 - It says what it should be done 2. Lab2.zip - It has code that should be used in exercise 3 3. Lab 2 structure where it shows how the structure it should be written in and it should be 500 words ONLY.

new features of this C++ programming

Streaming Operator

   Added on 2022-08-12

BookmarkShareRelated Documents
Running head: C++ PROGRAMMING
C++ PROGRAMMING
Enter name of the Student:
Enter name of the University:
Author note:
new features of this C++ programming_1
C++ PROGRAMMING1
Exercise 1 - Streaming 1
#include<iostream>
#include<string>
using namespace std;
int main(int argc, char** argv) {
int i;
float f;
cin >> i >> f ;
cout << "i=" << i << ",x=" << f << std::endl;
return 0;
}
new features of this C++ programming_2
C++ PROGRAMMING2
#include<iostream>
#include<string>
using namespace std;
int main(int argc, char **argv, string ch) {
int i;
float f;
string c;
cin >> i >> f>> c;
cout << "i=" << i << ",x=" << f << ",c="<<c<< std::endl;
return 0;
}
new features of this C++ programming_3
C++ PROGRAMMING3
Output
23 4.856 Hello
i=23,x=4.856,c=Hello
More >> Streaming Operator
#include<iostream>
using namespace std;
int main(int argc, char** argv) {
char c[5];
cin >> c;
cout << "c=" << c << endl;
return 0;
}
new features of this C++ programming_4

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
OOPS Concepts: C++
|10
|1216
|314

Ladder Diagram for Desklib
|20
|2848
|360

Organizing Input Output in a Programming Language
|11
|3656
|107

Rate of Acceleration Physics Assignment 2022
|6
|960
|17

Error Checking And Handling
|12
|2453
|21

Data Structure & Algorithms
|10
|2062
|432