Jump to content

C++ Convert Char To Int?


Recommended Posts

are you still using the code posted on the previous page? your for loops are wrong.

for(int b = 0; b == 99; b++)

That doesnt do anything. You initialize b to 0 and check if b is equal to 99. since its not equal your loop never starts. and one of those loops controls the switch statement which controls the output. what you want is

for( int i = 0; i < 100; i++ )

of course this is assuming that you're still using the code you posted before.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...