Thread: Inputting two "Enter a letter"

  1. #16
    Tears of the stars thames's Avatar
    Join Date
    Oct 2012
    Location
    Rio, Brazil
    Posts
    193

    Talking

    Code:
    valgrind --tool=memcheck --leak-check=full ./prosqueeze
    ==13408== Memcheck, a memory error detector
    ==13408== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
    ==13408== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
    ==13408== Command: ./prosqueeze
    ==13408== 
    Enter the word you want: thames
    You entered: thames
    Enter the number of letters of the alphabet you want (1-26): 4
    You entered 4
    Enter a letter: a
    Enter a letter: m
    Enter a letter: q
    Enter a letter: w
    The squeezed word is thes
    
    
    ==13408== 
    ==13408== HEAP SUMMARY:
    ==13408==     in use at exit: 0 bytes in 0 blocks
    ==13408==   total heap usage: 4 allocs, 4 frees, 327 bytes allocated
    ==13408== 
    ==13408== All heap blocks were freed -- no leaks are possible
    ==13408== 
    ==13408== For counts of detected and suppressed errors, rerun with: -v
    ==13408== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
    really many thanks!!!
    Last edited by thames; 11-09-2012 at 06:44 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 03-22-2008, 12:49 PM
  2. How can i make a "letter could not be found" break?
    By Welshy in forum C++ Programming
    Replies: 14
    Last Post: 04-12-2005, 02:41 PM
  3. Count the number of letter "a" on a sentence
    By imbecile in C in forum C Programming
    Replies: 6
    Last Post: 07-27-2003, 02:32 PM
  4. "itoa"-"_itoa" , "inp"-"_inp", Why some functions have "
    By L.O.K. in forum Windows Programming
    Replies: 5
    Last Post: 12-08-2002, 08:25 AM
  5. "CWnd"-"HWnd","CBitmap"-"HBitmap"...., What is mean by "
    By L.O.K. in forum Windows Programming
    Replies: 2
    Last Post: 12-04-2002, 07:59 AM

Tags for this Thread