CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8

Threaded View

  1. #5
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,637

    Re: Revert a string code is not working

    Quote Originally Posted by math8 View Post
    My compiler did not warn me about any variable being used without having been initialized. What is this variable?
    for(int i;i< counter-1;i++){

    Your debugger will show why it hangs, but you need to know how to run it. You need to actually watch the code run, not just press the debug button. If you want a clue, look closely at this line

    for(int i=0;i=b/2;i++){
    Last edited by GCDEF; February 11th, 2013 at 10:00 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured