Ok im a begginer(started yesterday)and I have been working whit the variable int
I want to do a program that asks for your name and then greets you.I have this-
But it doesent workCode:#include <iostream.h> #include <stdio.h> int main(int nNumberofArgs, char* pzArgs[]) { string name; cout << "What is your name?"; cin >> name; cout << "hallo,"; cout << name; return 0; }
When I work whit the variable int and put it in My code(Im using MicrosoftVisual6.0) "int" turns blue but when I put "string it doesent turn blue=\
WHATS WRONG ? ? ? ?
Thanks in advance
[code][/code]tagged by Salem