1. Asks user for his/her name
2. Stores the name in some variable.
3. Print "Hello, " [the user's name, replace with the name] " welcome to DIC" or Dream.In.Code or something to the effect.
ANY programing language and library combination is allowed (i.e. C++, C/Ncurses, Python, Qt). GUI allowed. If you're not sure users wold know, post short instructions on how to compile/run. I'll start with a C++ implementation using the C++ standard library:
#include<iostream>
#include<string>
using namespace std;
int main()
{
string a;
cout << "Type your name: ";
getline(cin, a);
cout << "Hello, " << a << ". Welcome to Dream.In.Code\n";
return 0;
}
Please make sure the code works before posting.

New Topic/Question


MultiQuote





|