Codesnipp.it Social Code Sharing

Harley Inbody

I have a programming assignment that I'm working on. Everything is fine except when I use ispunct() I get a Debug Assertion Failed error... says Expression: (unsigned)(c + 1) <=256. if I take the ispunct() function and just do something like array[i] == !

by Harley Inbody on Sep 28, 2011

if((CopiedString[i] == ' ') || (ispunct(CopiedString[i])))//(CopiedString[i] == '!'))

Can't see the comments? Please login first :)