fastread homefastrread library fastread menu

C++ : Print a Sentence

Tutorial by:Manisha Dubey      Date: 2016-06-18 03:26:56

❰ Previous Next ❱


<iostream> using namespace std; int main() { cout << "C++ Programming."; return 0; }


C++ Programming.

Every C++ program starts from main() function. The cout is the standard output stream which normally flows data to the screen (can be redirected to other output devices) which displays C++ Programming.



Here is another proper way to perform this task without defining using namespace std; before main() function.

#include <iostream>

int main() {
    std::cout << "C++ Programming.";
    return 0;

❰ Previous Next ❱


Submit Your Thought, Tutorial, Articls etc.

Submit Your Information India's Number one online promotion website