HELP WHIT-What is your name? Hallo _____
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-
Code:
#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;
}
But it doesent work
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
Re: HELP WHIT-What is your name? Hallo _____
Quote:
Originally posted by NewBoy
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=\
MSVC++ colors keywords blue (by default)... "string" is not a keyword :)