Answers for "how to use string function in c++"

C++
0

c++ write string

#include <iostream>

int main() {
	std::cout << "Hello" << std::endl; //endl = end line/new line
    // or
    printf("hello");
    
}
Posted by: Guest on March-02-2020
0

how to print string data type in c++

printf("%sn",someString.c_str());
Posted by: Guest on April-26-2020

Browse Popular Code Answers by Language