Results 1 to 2 of 2

Thread: การเขียนโปรแกรมแบบ Recursive โดยใช้ตัวแปรแบบอะเรย์ ภาษาซี++

  1. #1
    Junior Member
    Join Date
    Jul 2008
    Posts
    13


    ผมเขียนโปรแกรมเพื่อรับค่าตัวเลย 5 จำนวนเข้าไป แล้วหาผลรวมตัวเลขที่เป็นเลขคู่ แบบธรรมดาได้แล้ว
    แต่อยากทราบว่า ถ้าต้องการทำเป็นแบบ Recursive หรือฟังก์ชั่นแบบเรียกตัวเอง ต้องแก้ไขเป็นยังไงครับ

    **Hidden Content: To see this hidden content your post count must be 2 or greater.**
    [/b]

  2. #2
    Junior Member
    Join Date
    May 2007
    Location
    Thailand
    Posts
    1


    อ่ะ
    เอาไปเลยครับ

    เหอๆ

    ผมเขียนให้ดูง่ายๆ สุดๆ แล้วนะครับ
    ถ้าไม่เข้าใจก็ถามได้ครับ


    [hide=1]
    [code]
    #include <stdio.h>

    int even, odd, sum;

    void function(int level) {
    [SIZE=2]ใครช่างใจร้ายใจดำ ทำกับฉันได้ !!![/SIZE]

Similar Threads

  1. อยากเขียน Graphic ใน ภาษาซี c ควรเริ่มยังไงครับ
    By vasTro in forum แนะความรู้ด้าน Programming ต่างๆ
    Replies: 16
    Last Post: 04-05-2010, 10:16 PM
  2. ใช้ ภาษาซี วาดรูป
    By UruRU in forum มือใหม่สอบถามปัญหาการใช้งาน
    Replies: 4
    Last Post: 17-12-2009, 11:05 AM
  3. บทความเอกสาร การสอน ภาษาซี
    By fluoride in forum แนะความรู้ด้าน Programming ต่างๆ
    Replies: 3
    Last Post: 15-09-2009, 06:36 AM
  4. Replies: 0
    Last Post: 03-10-2008, 10:31 PM
  5. Replies: 1
    Last Post: 23-07-2008, 04:19 PM

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
  •