Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>-->IsAlpha Determines whether an integer represents an alphabetic character.<br> Output:</p> <pre><code> Enter Email address ID: abcdef1@kmail.com Third charactor needs to be a number Fourth charactor needs to be a number Fifth charactor needs to be a number Sixth charactor needs to be a number Eight charactor needs to be a N or P Press any key to continue . . . </code></pre> <p>//-----------------------Make changes in braces as below------</p> <pre><code>#include "stdafx.h" #include &lt;iostream&gt; #include &lt;string&gt; #include &lt;cstring&gt; #include &lt;cctype&gt; using namespace std; int _tmain(int argc, _TCHAR* argv[]) { string string; // get character cout &lt;&lt; "\nEnter Email address ID: "; getline(cin, string ); cout &lt;&lt; endl; { if (!isalpha(string[0])) cout &lt;&lt; "first charactor needs to be a Letter"&lt;&lt; endl; if (!isalpha(string[1])) cout &lt;&lt; "Second charactor needs to be a letter"&lt;&lt; endl; if (!isdigit(string[2])) cout &lt;&lt; "Third charactor needs to be a number"&lt;&lt; endl; if (!isdigit(string[3])) cout &lt;&lt; "Fourth charactor needs to be a number"&lt;&lt; endl; if (!isdigit(string[4])) cout &lt;&lt; "Fifth charactor needs to be a number"&lt;&lt; endl; if (!isdigit(string[5])) cout &lt;&lt; "Sixth charactor needs to be a number"&lt;&lt; endl; if (!isdigit(string[6])) cout &lt;&lt; "Seventh charactor needs to be a number"&lt;&lt; endl; if(!isalpha(string[7])) { if(string != "n" || string !="p") {cout &lt;&lt; "Eight charactor needs to be a N or P"&lt;&lt; endl; } } cout &lt;&lt; endl; system("pause"); return 0; } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload