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.
Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!
Edited 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.