Jump to content
Sign in to follow this  

How to print in C++

Recommended Posts

Honestly I'm just making this so I can have the first thread in this section B)


Just type:


std::cout << "Hello World";

std is a namespace which basically means it checks the standard c++ library for the word next to it (cout)

cout means console out, self explanatory.

<< Is saying like output the thing to the right of it. So it'll output our string of text.

and ; is like a full stop.


This is a VERY HQ post, trust me lads

Discord server: https://discord.gg/m7TnXxh

Share this post

Link to post
Posted (edited)

Well true in some form, although you didn't explain how you have to include the standard input/output stream, and what your main function is.

Assuming they have no previous knowledge of C++.

This is also very "error-prone" because you are not ending the line and flushing the output stream (you can use the endl manipulator or the add "\n" on the end)

Edited by k1len1

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...