Current time: 01 May 2024, 07:07 PM



C++ Help #2 xD
Away SmG FlasH™

Senior Member
Senior Member
******
11 Years of Service
Posts: 3,129
Threads: 102
Likes Received: 0 in 0 posts
Likes Given: 0
Joined: Apr 2013
Reputation: 141
Location: Summoners Rift
Halo GodCrystal DonatorSmoothThe BombDiscord WarriorGavel of TrinityDiamondGamerProgrammerThanks From Cloud
#1
C++ Help #2 xD

Code:
#include <iostream>
#include <string>
using namespace std;

void main()
{
string name;
cout << "Enter your Full Name: " << endl;
getline(cin, name);
cout << endl;

}

I'd like to display a message saying "Please enter a valid Input" when the user inputs any value other than alphabets.
[Image: SPOILER_FlasH-1.gif]
07 May 2016, 11:00 AM
Find


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)
SmG Gaming, © 2010-2024
Theme By: «SmG» Cloud
Edited by: «SmG» Wires