السلام عليكم ورحمة الله وبركاته جزاكم الله خير
ارجوا اجابتي اليوم بليززز اريد الكود لهذا البرنامج علما اني استخدم لغة
write a program that reads in a sentence of up to 100 characters and outputs the sentence with spacing corrected and with letters corrected for capitalization. In other words, in the output sentence, all string of two or more blanks should be compressed to a single blank. The sentence should start with an uppercase letter but should contain no other uppercase letters. Don’t worry about proper names, if there first letter are changed to lowercase, that is acceptable. Treat a line break as if it was a blank, in the sense that line break and any number are blanks are compress to a single blank. Assume that the sentence ends with a period and contains no other period. For example the input
the Answer to life, the universe, and everything is 42.
Should produce
The answer to life, the universe, and everything is 42]
c++واستخدم c-stringوحل هذا لجواب في function هذولي
strcpy (Target_String, Source_String
strncpy (Target_String, Source_String, Limit
strcmp (String_1, String_2
strlen (Source_String
strcat (Target_String, Source_String
strncat (Target_String, Source_String, Limit
وفي معلومة زيادة نستخدم هذول ي بيسهل الحل
1. str.insert(pos, str2)
2. str.erase(pos, length)
وممكن اللي عنده كتاب problem solving c++ ممكن يساعده صفحة 507وdisplay8.7 v
بليز ردوا علي الله يوفق اللي بيجاوبي ويسعده دنيا واخره