*correction
Please add 1 in n_itr in the above code.
strlen() returns the length of string not including the '\0' (null) character.
hafeez_maaz -4 Newbie Poster
Salem commented: correction - get a time machine and read this -> http://www.daniweb.com/software-development/cpp/threads/78223 -4
hafeez_maaz -4 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Diego.Corso 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.