Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Kandy
Welcome all my all new pet shop Bark.lk
dilumrane
Updated:
Yesterday at 12:26 PM
Windows RDP Only Rs.500 a month
Blogerwiki
Updated:
Sunday at 12:41 PM
Ad icon
V2ray VPN for Tunneling
hu KANNA
Updated:
Oct 22, 2026
FREE SEO Check & Google Maps Check for Sri Lankan Businesses | Web Design, Website Price Rs 14,900 |
LankaSolve
Updated:
Oct 20, 2026
ඕනම රටකට සෙට් වෙන CV එකක්
ErMurazor
Updated:
Oct 17, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
A Thread for Programmers.!
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="Core" data-source="post: 7819387" data-attributes="member: 263471"><p><strong>The Answer to First Question.! </strong></p><p><strong>Now it's your turn ;</strong></p><p><strong>according to what I said early.!</strong></p><p></p><p>[CODE]</p><p>/*</p><p>This is my first Problem in ISO/IEC C++</p><p>Code a program to read characters and count the vowels and count consonants from keyboard as well then you need to separate both in columns . stop</p><p>counting when it reaches a X or it's simple is encountered.</p><p></p><p>(Use Console to run this on,Don't use a GUI.!!) </p><p>*/</p><p></p><p>#include <iostream></p><p></p><p>using std::endl;</p><p>using std::cout;</p><p>using std::cin;</p><p></p><p>int main()</p><p>{</p><p> char character;</p><p> int i=0;</p><p> int countVowls = 0;</p><p> int coutConsts = 0;</p><p></p><p> for(;;)</p><p> {</p><p> cout << endl;</p><p> cout << "Type any character to proceed" << endl;</p><p> cin >> character;</p><p></p><p> if('x' == character || 'X' == character) //Stop when type X or x</p><p> {</p><p> break;</p><p> }</p><p></p><p> switch(character)</p><p> {</p><p> case 'a' : case 'A': </p><p> case 'e' : case 'E': </p><p> case 'i' : case 'I': </p><p> case 'o' : case 'O': </p><p> case 'u' : case 'U':</p><p> countVowls++;</p><p> break;</p><p> default:</p><p> coutConsts++;</p><p> break;</p><p> }</p><p></p><p> }</p><p></p><p> cout << "Number of Vowels : " << countVowls << " || and Consonant : " << coutConsts << endl; //Seperate both in Columns</p><p> cin >> i;</p><p> return 0;</p><p>}[/CODE]</p></blockquote><p></p>
[QUOTE="Core, post: 7819387, member: 263471"] [B]The Answer to First Question.! Now it's your turn ; according to what I said early.![/B] [CODE] /* This is my first Problem in ISO/IEC C++ Code a program to read characters and count the vowels and count consonants from keyboard as well then you need to separate both in columns . stop counting when it reaches a X or it's simple is encountered. (Use Console to run this on,Don't use a GUI.!!) */ #include <iostream> using std::endl; using std::cout; using std::cin; int main() { char character; int i=0; int countVowls = 0; int coutConsts = 0; for(;;) { cout << endl; cout << "Type any character to proceed" << endl; cin >> character; if('x' == character || 'X' == character) //Stop when type X or x { break; } switch(character) { case 'a' : case 'A': case 'e' : case 'E': case 'i' : case 'I': case 'o' : case 'O': case 'u' : case 'U': countVowls++; break; default: coutConsts++; break; } } cout << "Number of Vowels : " << countVowls << " || and Consonant : " << coutConsts << endl; //Seperate both in Columns cin >> i; return 0; }[/CODE] [/QUOTE]
Insert quotes…
Verification
Hath warak paha keeyada? (hatha wadikireema paha)
Post reply
Top
Bottom