Find Jobs
Hire Freelancers

Write a program that simulates the search and replace operation in a text editor.

$2-8 USD / hour

กำลังดำเนินการ
โพสต์ ประมาณ 11 ปีที่ผ่านมา

$2-8 USD / hour

Write a program that simulates the search and replace operation in a text editor. The program is to have only three function calls in main. The first prompts the user to type a string of 80 characters, then prmpts the user to search a substring of 10 or fewer characters, finally it prompts the user to type the replace substring of 10 or fewer characters. The second call is the search and replace function, which replaces all occurences of the search substring with the replace substring and creates a new string. If no occurrences are found it returns the original string. The new string culd be 800 characters long (80 identical characters replaced by 10 characters each). Your function must be able to handle overfow by using the realloc function to exten the new string when neccessary. Start with an output string of 80 characters then extend by 80 when necessary. the function returns the adress of the new string. After the search and replace function returns, a print function prints the resulting string as a series of 80 character lines. It performs word wrap. That is a line can end only at a space. if there is no space in 80 characters then print 79 characters and a hyphen and continue on the next line. rune the program at least three times: a. first run it with no substitutions in the original input b. second run it with two or more substitutions c. finally run it with substitutions that cause the output to be at least three lines one of which requires a hyphen.
รหัสโปรเจกต์: 4295388

เกี่ยวกับโปรเจกต์

1 ข้อเสนอ
โปรเจกต์ระยะไกล
ใช้งานอยู่ 11 ปีที่ผ่านมา

กำลังมองหาการสร้างรายได้ใช่ไหม?

ประโยชน์ของการประมูลกับ Freelancer

กำหนดงบประมาณและกรอบเวลาของคุณ
รับเงินจากการงานของคุณ
อธิบายข้อเสนอของคุณในภาพรวม
ลงทะเบียนและเสนอราคาฟรี
หมอบหมายให้:
รูปอวาตาร์ของผู้ใช้
good luck for both of us
$2 USD ใน 10 วัน
5.0 (3 รีวิว)
1.6
1.6

เกี่ยวกับลูกค้า

ปักธงของ UNITED STATES
san jose, United States
5.0
43
ยืนยันวิธีการชำระเงินแล้ว
เป็นสมาชิกตั้งแต่ พ.ค. 31, 2012

การยืนยันลูกค้า

ขอบคุณ! เราได้ส่งลิงก์สำหรับเครดิตฟรีให้คุณทางอีเมลแล้ว
เกิดข้อผิดพลาดขณะส่งอีเมลของคุณ กรุณาลองอีกครั้ง
โลโก้ Freelancer Thailand / ภาษาไทย ช่วยเหลือและสนับสนุน FreelancerประเภทโปรเจคการประกวดFreelancerองค์กรแพ็กเกจสมาชิกโครงการ Freelancer ชั้นแนวหน้าการจัดการโปรเจคงานในพื้นที่Photo Anywhereหน้าจัดแสดงผลงานAPI สำหรับนักพัฒนาได้รับการยืนยันDesktop App เกี่ยวกับเกี่ยวกับเราวิธีใช้งานความปลอดภัยนักลงทุนแผนผังเว็บไซต์เรื่องราวข่าวออกสื่อทีมรางวัลข่าวประชาสัมพันธ์ร่วมงานกับเรา ข้อกำหนดนโยบายความเป็นส่วนตัวข้อกำหนดและเงื่อนไขนโยบายลิขสิทธิ์ข้อพึงปฏิบัติค่าธรรมเนียมและค่าบริการหุ้นส่วนEscrow.comLoadshiftWarrior Forum แอปโลโก้ Apple App Store โลโก้ Google Play
ไม่สามารถคัดลอกไปยังคลิปบอร์ดได้ โปรดลองอีกครั้งหลังปรับเปลี่ยนการอนุญาต
คัดลอกไปยังคลิปบอร์ดแล้ว
ผู้ใช้ที่ลงทะเบียน งานที่มีการโพสต์ทั้งหมด
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
กำลังโหลดตัวอย่าง
ได้รับอนุญาตสำหรับตำแหน่งทางภูมิศาสตร์
เซสชั่นการเข้าสู่ระบบของคุณหมดอายุและคุณได้ออกจากระบบแล้ว กรุณาเข้าสู่ระบบอีกครั้ง