int stores numbers without decimals
char stores one character
float stores numbers with decimals
Then how do I store words?
Thanks!
PS Here's my code, if it can help:
Code: Select all
#include <iostream>
using namespace std;
int main()
{
char geschreven;
cout<<"Please type your name\n";
cin>> geschreven;
cin.ignore();
cout<<"Hi "<<geschreven <<"\n";
cin.get();
}