Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how to use cout function in c++

#include <iostream> //the library that contains cout

//cout is located in the "std" namespace so you can just say 
//"using namespace std" to directly have access to cout or you can just
//type std::cout and it well work the same

int main()
{
  	std::cout << "text" << std::endl; //endl is basicly the same as printing "
" or new line
	
  	return 0; //just exiting the program
}
Source by www.roblox.com #
 
PREVIOUS NEXT
Tagged: #cout #function
ADD COMMENT
Topic
Name
5+9 =