answersLogoWhite

0

NOTICE

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Can you give an example of a basic 'Hello World' program?

#include<iostream> int main() { std::cout << "Hello world!" << std::endl; return(0); }


What STD did Rihanna give Chris Brown?

rihanna did not give chris brown std they had got into a fight and every thing else is a lie so do not belive what they say they are some lieing b***H'S


Can you give an example of a basic program that stores and retrieves data in a file in C plus plus?

#include <iostream> #include <fstream> int main() { std::fstream f("myfile.txt", std::ios::in | std::ios::out | std::ios::trunc); if (!f.bad()) { // write to file f << "The brown fox jumps over the lazy dog" << std::endl; f.close(); // read from file f.open("myfile.txt", std::ios::in); std::cout << f.rdbuf(); f.close(); } }


Which economic system of country give best chances for a success of multinational company?

# by taking example of a bank# when no interest is charged on the credits , took by the borrower. - by Arashdeep , std. 9 # by taking example of a bank# when no interest is charged on the credits , took by the borrower. - by Arashdeep , std. 9


Did Tiger Woods give his wife a STD?

No


Did Dwyane Wade give his wife std?

No


What not to give your boyfriend on Valentine's Day?

an std


Can you give some important topics of English composition of icse xth board exam?

can u give some important topics of english composition of icse xth std board exam?


What are some examples of loops in C plus plus?

The following example demonstrates all 4 loop structures in C++. #include<iostream> int main() { int i; std::cout<<"For loop...\n"<<std::endl; for(i=0; i<10; ++i) std::cout<<i; std::cout<<'\n'<<std::endl; std::cout<<"While loop...\n"<<std::endl; i=0; while(i<10) std::cout<<i++; std::cout<<'\n'<<std::endl; std::cout<<"Do-while loop...\n"<<std::endl; i=0; do { std::cout<<i; }while( ++i<10 ); std::cout<<'\n'<<std::endl; std::cout<<"Goto loop...\n"<<std::endl; i=0; again: std::cout<<i; if(++i<10) goto again; std::cout<<'\n'<<std::endl; } Output: For loop... 0123456789 While loop... 0123456789 Do-while loop... 0123456789 Goto loop... 0123456789


Give an example of C plus plus program?

#include<iostream> int main() { using namespace std; cout<<"Hello world!"<<endl; return(0); }


What is a user defined manipulator in c plus plus?

A user-defined manipulator is a function which can be passed as an argument to the stream insertion or extraction operator overloads. For example, the output stream insertion operator has the following overload: std::ostream& operator<< (std::ostream& st, std::ostream& (*func) (std::ostream&)); The second argument is the function pointer, with the following signature: std::ostream& (*func) (std::ostream&) Any function that matches this signature can be used as a manipulator. For instance, the following user-defined manipulator does exactly the same job as the std::endl manipulator: std::ostream& my_manipulator (std::ostream& os) { return os << '\n' << std::flush; } Example usage: std::cout << "Hello world!" << my_manipulator; You can, of course, provide your own implementations to perform any type of manipulation. For example, suppose you want a manipulator that inserts an elipses into an output stream: std::ostream& elipses (std::ostream& os) { return os << "..."; } Example usage: std::cout << "Hello" << elipses << "world!" << my_manipulator; Output: Hello...world!


How do you read a word with blank space in c plus plus?

A word with blank spaces is not a word, it is a collection of words, possibly a sentence, a paragraph or an entire book. These are strings (character arrays) and you can read these just as easily as you can an individual value, using the std::getline() function. The following example demonstrates this. #include<iostream> #include<sstream> int main() { std::string s; std::cout<<"Type some words: "; std::getline( std::cin, s ); std::cout<<"You typed:"<<s.c_str()<<std::endl; }