Answered step by step
Verified Expert Solution
Question
1 Approved Answer
systematic programming Subttle Synchronization Write a C or C++ program that takes a subtitle file(a file with .srt extension) and a signed number (in milliseconds)
systematic programming
Subttle Synchronization Write a C or C++ program that takes a subtitle file(a file with .srt extension) and a signed number (in milliseconds) as its inputs and add/subtract that amount of time from all of the content of the file and return the modified file. For example, consider the following small part of a subtitle from the big bang theory: 1 00:00:03,25800:00:05,078 Ooh, it's freezing out here. 2 00:00:05,58700:00:07,877 Would you like me to... heat things up? 3 00:00:07,963 00:00:11,056 No, I want to get in the hot tub before I lose a toe. 4 00:00:12,30600:00:14,351 Oh. That is bright! 5 00:00:14,43600:00:16,915 Yeah, a new neighbor put in floodlights. 6 00:00:17,00100:00:18,251 Huh. 7 00:00:18,37300:00:19,798 So, shall we? 8 00:00:20,79000:00:24,183 No. I don't want to take my robe off under a spotlight. 9 00:00:24,37600:00:26,329 This is a candle body. The first text will appear at 00:00:03,258 till 00:00:05,078. it is very annoying if it is not synced with the movie. Your code moves all of the time forward or backward according to the number of milliseconds that the user specified Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started