whiplk

wii-Cells

Oct 11th, 2011
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.51 KB | None | 0 0
  1. #include <iostream>
  2. #include <windows.h>
  3. #include <stdio.h>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     char willian[128];
  9.     printf("Digite a sua format para ser feito o calculo dos Caracteres\n");
  10.     gets(willian);
  11.     printf("Caracteres usados: %u\n\n",strlen(willian));
  12.     while(true)
  13.     {
  14.         printf("Digite outro format ou aperte Shift e Enter para cancelar.\n");
  15.         gets(willian);
  16.         printf("Caracteres usados: %u\n\n",strlen(willian));
  17.         if(GetAsyncKeyState(VK_LSHIFT))
  18.         {
  19.             break;
  20.         }
  21.         continue;
  22.     }
  23.     return 1;
  24. }
  25.  
Advertisement
Add Comment
Please, Sign In to add comment