i was just wondering how come there is no variable type (like int) that suppors words?

i am tyring to make a program that simply just responds to a user, but all my program is accepting is numbers.
what do i do?
yes i already tried google.

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.
Create Account How it WorksEdited by NullWolf, 02 August 2005 - 03:01 PM.
#include <string> #include <iostream> using namespace std; int main() { string bob = "Hello, im a string\n"; cout << bob; return 0; }
#include <iostream.h> int main() { char *mychar; // this is a pointer mychar = "Hello"; cout << "mychar has the value of: " << mychar << "\n" << "and the address in memory of: " << &mychar << "\n"; return 0; }
Edited by inoxx.net, 02 August 2005 - 03:52 PM.
0 members, 0 guests, 0 anonymous users
Community Forum Software by IP.Board
Licensed to: Geeks to Go, Inc.