Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Stream8
//g++ 7.4.0 /////////////////////////////////////////////////////////////////////// //Stream8 //this code is created by Rezaul Hoque on July 26,2022; //contact:jewelmrh@yahoo.com;Dhaka,Bangladesh;https://rezaulhoque.wordpress.com,https://hoquestake.blogspot.com //note: codes shared by Rezaul Hoque on rextester are not for sale; they are created and shared to facilitate the algorithm learning process; many like Hoque use this platform to practice programming ;Rezaul hopes his contribution helps others to fine tune their learning; ////////////////////////////////////////////////////////////////////////////// #include <fstream> #include <iostream> #include <iomanip> #include <string> #include <strstream> //stream manipulator std::ostream& l(std::ostream& os) { return (os<<"\n"); } void fill(char c) { std::cout.width(40); std::cout.fill(c); std::cout<<l; } int main() { fill('&'); std::cout.setf(std::ios::internal); std::cout.fill(' '); std::cout.width(25); std::ostringstream s; std::streamsize n=s.rdbuf()->sputn("Another Stream Example",22); std::cout<<s.str()<<l; std::stringstream date("July 00"); date.get(); date.get(); date.get(); date.get(); date.get(); date.get(); date.rdbuf()->sputbackc('2'); date.get(); date.get(); date.rdbuf()->sputbackc('6'); std::cout<<date.str(); std::stringstream y(", 2022"); std::cout<<y.str()<<l; fill('&'); return 0; }
run
|
edit
|
history
|
help
0
override
at_multimap_example
reverseKNode
Find Triplets or Duplets that the sum is multiplie of three
find duplicate in O(n)
list
Microsoft - # of fragments (semi-optimised)
Hello world.c
Kishan_template
New wall