Hey guys i am new in programming and i want to create a program in c++ that requests the user to enter a number and then it will display the statement of information that is related to that value. What data type can i use that would support variables and statement of words?
Well it’s been few years since i learned c++. It sounds like
cin
and cout
to me. http://www.cplusplus.com/doc/tutorial/basic_io/
It depends, but most common data types for numbers are int
and float
Statement of words will use str
as a keyword.
Try taking some basic tutorials online on inputs and outputs in c++.
Thanks for the quick response…