Search
 
SCRIPT & CODE EXAMPLE
 

CPP

c++ write string

#include <iostream>

int main() {
	std::cout << "Hello" << std::endl; //endl = end line/new line
    // or
    printf("hello");
    
}
Comment

How to write String in C++

char greeting[6] = {'H', 'e', 'l', 'l', 'o', ''};
Comment

PREVIOUS NEXT
Code Example
Cpp :: copy assignment operator in c++ 
Cpp :: erase range vector c++ 
Cpp :: educative 
Cpp :: how to use power in c++ 
Cpp :: what algorithm does bitcoin use 
Cpp :: memset in cpp 
Cpp :: queue operations c++ 
Cpp :: c++ function pointer 
Cpp :: merge sort in descending order c++ 
Cpp :: c++ copy constructor 
Cpp :: converting int to string c++ 
Cpp :: c++ pointers 
Cpp :: malloc 2d array cpp 
Cpp :: error in c++ 
Cpp :: c++ virtual function 
Cpp :: set to vector c++ 
Cpp :: C++ Initialization of three-dimensional array 
Cpp :: pointer to value of others file cpp 
Cpp :: vector keyword in c++ 
Cpp :: print all variables separated by comma c++ 
Cpp :: fabs c c++ 
Cpp :: adding two dates using necessary member function in c++ 
Cpp :: c++ restrict template types 
Cpp :: move semantics in c++ 
Cpp :: how to change the icon of an exe in c++ 
Cpp :: ue4 c++ enum variable declaration 
Cpp :: Hash Sort in C++ 
Cpp :: C++ initializing a thread with a public function of a class 
Cpp :: beecrowd problem 1003 solution in c++ 
Cpp :: numpy array scalar addition 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =