Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <windows.h>
- #include <stdio.h>
- using namespace std;
- int main()
- {
- char willian[128];
- printf("Digite a sua format para ser feito o calculo dos Caracteres\n");
- gets(willian);
- printf("Caracteres usados: %u\n\n",strlen(willian));
- while(true)
- {
- printf("Digite outro format ou aperte Shift e Enter para cancelar.\n");
- gets(willian);
- printf("Caracteres usados: %u\n\n",strlen(willian));
- if(GetAsyncKeyState(VK_LSHIFT))
- {
- break;
- }
- continue;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment