HOW to insert String in C++
-
just i am asking what how to let user enter his name , i want to make program that ask you enter your name, your family name,? specify by writing the code please . Thank you
my frnd you should first include string.h and declarethe variable for example
#include"iostream.h" #include"string.h" main(){ string name; cout<<"enter your name"; cin>>name; cout<<"your name is "<
-
my frnd you should first include string.h and declarethe variable for example
#include"iostream.h" #include"string.h" main(){ string name; cout<<"enter your name"; cin>>name; cout<<"your name is "<
You should use <pre> tags round code (using the code link above) and line it up properly like:
include"iostream.h"
#include"string.h"main()
{
string name;
cout << "enter your name";
cin >> name;
cout << "your name is "<
The var link is used to highlight single words or phrases such asint variable;
in a sentence.Use the best guess
-
just i am asking what how to let user enter his name , i want to make program that ask you enter your name, your family name,? specify by writing the code please . Thank you