|
 |
- - - - - - - - - - - - - - ผู้ให้การสนับสนุน- - - - - - - - - - - - - -
|
|
 |
กระทู้ #1465 [C] (จาก IP: 202.28.4.15)
ช่วยด้วยค่ะ
จงเขียนโปรแกรมเชิงตอบโต้ในลักษณะของเมนู สำหรับเก็บข้อมูลบุคคล ในลักษณะของระเบียบภายในไฟล์ซึ่งประกอบด้วย ชื่อ ที่อยู่ เบอร์โทรศัพท์ สำหรับเมนู มีดังนี้ A:Add a new record B:Delete record C:Modify exiting record D:Generate a complete detail of list of name by alphabetical order E:Exit Program
|
จากคุณ
:
หนูนาคะ / ze.ze.a.dink@gmail.com [2007-10-04 11:44:29]
|
|
ความคิดเห็น #26123 (จาก IP: 202.28.4.15)
คือแบบว่าอ.เค้าสั่งให้ทามอ่ะค่ะ แล้วหนูเขียนไม่ได้จริงๆ พยายามมาหลายอาทิตย์แล้ว รบกวนพี่ๆช่วยหนูหน่อยนะคะ ขอบคุณจริงๆคะ |
จากคุณ
:
หนูนาคะ / ze.ze.a.dink@gmail.com [2007-10-04 11:46:51]
|
 |
ความคิดเห็น #26124 (จาก IP: 58.8.183.214)
#include <iostream> using namespace std;
void do_again(),direction(int ans); void option_1(),option_2(),option_3(),option_4(),option_5(),option_6();
int main() { do_again();//call do_again function, say goodbye to main until everything else is done running
return 0; }//end function
void do_again() { int ans;//declare ans variable, this will be used OVER AND OVER do { cout << "What would you like to do?\n"; cout << "1: Option 1\n"; cout << "2: Option 2\n"; cout << "3: Option 3\n"; cout << "4: Option 4\n"; cout << "5: Option 5\n"; cout << "6: Option 6 - Exit\n";//print us some options cin >> ans; cin.ignore(80,'\n'); //take in an answer direction(ans);//send that answer to direction! }while(ans!=6);//keep on keepin on till they pick exit! }//end function
void direction(int ans) { switch (ans)//roll thru options { case 1: //if they picked the number 1, its gonna go to this function, //thats pretty much how the whole thing works option_1(); break; case 2: option_2(); break; case 3: option_3(); break; case 4: option_4(); break; case 5: option_5(); break; case 6: option_6(); break; default://THEY DIDNT READ THE MENU, WHO WOULD HAVE THOUGHT?!?! cout << "Please read and follow all directions\n";//if directions aren't followed break; } }//end function
//functions, FILL WITH VALUABLE PROGRAMMING SKILLS
void option_1() { }//end function
void option_2() { }//end function
void option_3() { }//end function
void option_4() { }//end function
void option_5() { }//end function
void option_6() { }//end function |
จากคุณ
:
sup98 [2007-10-04 12:02:01]
|
 |
|
- - - - - - - - - - - - - - ผู้ให้การสนับสนุน- - - - - - - - - - - - - -
|
|
|
|
|