Jump to content

Recommended Posts

yes you can use std string

#include <string>
#include <iostream>
 
void main()
{
  std::string test = "hello from c++";
  std::cout << test << std::endl;
  return 0;
}

endl is the end of line seperator depending on your platform

string is actually a class that contains many methods like size() and append(), check http://www.cplusplus.com/reference/string/string/?kw=string

Roohansama likes this

QmXjtKY.png

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...