Results 1 to 4 of 4

Thread: ใครรู้ช่วยด้วยคับ

  1. #1
    Junior Member
    Join Date
    Jul 2007
    Posts
    0


    มีใครพอรู้สูตรในการเช็กว่าตัวไหนคือเลข palindrome ป่าวคับคิดยังไงก็คิดไม่ออก
    ช่วยทีคับเอาสูตรแบบคลอบคลุมทั้งหมดนะคับ คือถ้าผมไม่ส่งศรุกร์หน้า
    ผมตายแน่เพราะใครไม่ส่งเค้าไม่ให้สอบช่วยทีคับ
    จะเป็นพระคุณอย่างสูงถ้าอธิบายด้วย ขอบคุณคับ
    ตัวอย่างนะคับ เช่น
    input A72BB27A output palindrome
    input aB3Ba5ab3BA output double palindrome
    input aB4 output no
    ประมาณนี้อะคับ

  2. #2
    Junior Member
    Join Date
    Oct 2006
    Posts
    13


    ผมเคยทำโจทย์นี้ด้วยภาษาปาสคาลครับ ไม่มีคำสั่งครับ
    ผมใช้ for วนลูป เอาตัวอักษรตัวสุดท้ายมาไว้ในตัวแรก เก็บไว้ในตัวแปรอีกตัว
    ภาษาซี็น่าจะทำเหมือนๆกัน ครับ ลองหาคำสั่งเกี่ยวกับการจัดการstring ดูครับ
    ในปาลคาลผมใช้คำสั่งหาความยาวตัวอักษร แล้วก็แทรกตัวอักษร
    ส่วนในภาษาซีผมจำคำสั่งไม่ค่อยได้ ไม่ได้เขียนนาน ไว้ถ้ามีเวลาจะทำเป็นตัวอย่างให้ดู

  3. #3
    Senior Member
    Join Date
    Jul 2004
    Location
    Thailand
    Posts
    211


    วิธีทำน้ะ เปิด browser ขึ้นมา IE, firefox , opera หรือ อื่นๆ

    พิมพ์ ที่ address www.google.co.th

    ใส่ข้อความว่า palindrome ลงใน text box ของ google แล้วกด ค้นหาโดย google

    จะได้ http://www.google.co.th/search?hl=th&q...oogle&meta=


    หรือไปเว็บที่เป็นแหล่งร่วม code

    http://pscode.com/vb/scripts/ShowCode.asp?...81&lngWId=3

    :P

  4. #4
    Junior Member
    Join Date
    Jul 2007
    Posts
    0


    ขอบคุงคับจนถึงตอนนี้ก็ยังคิดไม่ค่อยจะได้เลย
    มีเพื่อนบอกต้องเช็ค %ผมต่างอะไรเนี่ย
    งงคับ

Members who have read this thread : 0

Actions : (View-Readers)

There are no names to display.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •