There are C-strings, which are really just an array of char:
char im_a_c_string[ 50 ];
This string has enough room for up to 49
characters plus a null-terminator. Whenever you mess with it, you must be careful to never use more than the available 49 characters.
std::strcpy( im_a_c_string, "Hello " );
std::strcat( im_a_c_string, "world!" ); // there is no guarantee that all this fits!
C++ makes life easy, and does all the array stuff for you:
You no longer have to care about how many characters are in the array, because C++ will do it for you.
im_a_cpp_string = "Hello ";
im_a_cpp_string += "world!"; // no worries!
Hence, to get a company name, just declare a string variable and use it, much like an int:
using namespace std;
cout << "Hello!\n";
cout << "Company name? ";
getline( cin, company_name );
cout << "Good job! Your company is " << company_name << "\n";
The next thing to do is compile and run
programs you create. The more you mess with it, the quicker things make sense.
Hope this helps.