Why we cant insert two concecative charcter in c?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • turboRIT
    New Member
    • Aug 2014
    • 1

    Why we cant insert two concecative charcter in c?

    i tried to scan two char form user consecativly but screen terminates while scanning r=the second charcter
    why it happen
  • tomjakson
    New Member
    • Aug 2014
    • 2

    #2
    This function assumes that the first string will not contain two // consecutive '*' if ... then there are two possibilities // a) We consider current character of second ... Yes test("abc*c?d", "abcd"); // No because second must have 2 instances of ..... Just add a check after the while loop to check if both strings have terminated or not.

    Comment

    • weaknessforcats
      Recognized Expert Expert
      • Mar 2007
      • 9214

      #3
      Maybe posting a little code would help. I'm having a little trouble following what's going on.

      Comment

      Working...