1 | // mySmallInput.cpp
|
---|
2 | //
|
---|
3 | #include <stdio.h>
|
---|
4 | #include <unistd.h>
|
---|
5 | #include <iostream>
|
---|
6 | using namespace std;
|
---|
7 |
|
---|
8 | const char *TextYellow = "\33[33m";
|
---|
9 | const char *TextRed = "\33[31m";
|
---|
10 | const char *TextNormal = "\33[0m";
|
---|
11 |
|
---|
12 | int main()
|
---|
13 | {
|
---|
14 | char inputBuffer[64];
|
---|
15 |
|
---|
16 | cout << TextRed << "--> Hello, What's your first name:" << TextNormal << '\n';
|
---|
17 | cout << TextYellow << "--> ";
|
---|
18 | cin >> inputBuffer;
|
---|
19 | cout << TextRed << "--> Hello, " << inputBuffer << "." << TextNormal << endl;
|
---|
20 |
|
---|
21 | return 0;
|
---|
22 | }
|
---|