CopyPastor

Detecting plagiarism made easy.

Score: 1; Reported for: String similarity Open both answers

Possible Plagiarism

Reposted on 2024-10-22
by shah0651

Original Post

Original - Posted on 2024-10-22
by shah0651



            
Present in both answers; Present only in the new answer; Present only in the old answer;

**Swift 5, Xcode 14**
import UIKit import AVFoundation class ViewController: UIViewController { var player: AVAudioPlayer! override func viewDidLoad() { super.viewDidLoad() } @IBAction func keyPressed(_ sender: UIButton) { playSound() } func playSound() { let url = Bundle.main.url(forResource: "C", withExtension: "wav") player = try! AVAudioPlayer(contentsOf: url!) player.play() } }
**Swift 5, Xcode 14**
import UIKit import AVFoundation class ViewController: UIViewController { var player: AVAudioPlayer! override func viewDidLoad() { super.viewDidLoad() } @IBAction func keyPressed(_ sender: UIButton) { playSound() } func playSound() { let url = Bundle.main.url(forResource: "C", withExtension: "wav") player = try! AVAudioPlayer(contentsOf: url!) player.play() } }

        
Present in both answers; Present only in the new answer; Present only in the old answer;