It's done! getche() was the command I was looking for. So this is the program:
#include <iostream>
#include <conio.h>
#include <cstring>
using namespace std;
Type: Posts; User: Lucas525
It's done! getche() was the command I was looking for. So this is the program:
#include <iostream>
#include <conio.h>
#include <cstring>
using namespace std;
I get what you want to say but when I press "a" the input MUST stop and the program goes to output, in other words, it cannot allow me to input any more letters after "a".
What I need is when I type in first letter for example "b" and press ENTER to stay in the same line, don't want to go to a new line, even though I don't know if that's even possible.
You have to input a few letters (not sentences! ... and in the same line) and the input finishes when you enter "a", then you get a number of vowels and consonants as the result.
Like I just wrote it.
RIGHT:
Input: b [ENTER] i [ENTER] G [ENTER] ....
WRONG:
Input:
b [ENTER]
i [ENTER]
G [ENTER] ....
... or without having to press ENTER doesn't matter it just...
No, I have to enter random number of letters and the input ends with little letter a, for example:
Input: b i G h e K p a (and when I type in that last letter which has to be "a" it guves me a...
I have to make this program: I have to enter x number of letters in the same line and the program has to count vowels and consonants. So I've made a program that does all that except I don't know how...