Login or Sign Up
Logging in...
Remember me
Log in
Forgot password or user name?
or
Sign Up
Log in with
Forums
Articles
Today's Posts
PHOTO
Forum
Software
Software
Announcement
Collapse
No announcement yet.
{ถาม} เรื่องของ C++ ครับ
Collapse
X
Collapse
Posts
Latest Activity
Photos
Search
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
supertip
OverclockZone Member
Join Date:
24 Sep 2007
Posts:
344
Share
Tweet
#1
{ถาม} เรื่องของ C++ ครับ
12 Sep 2008, 18:35:18
ดูโปรแกรมให้ผมทีครับทำไมมันเป็นแบบนี้ คอมพีดผ่านแล้วนะครับ (พอดีเพิ่งเริ่มครับ)
http://img178.imageshack.us/my.php?image=aagf4.gif
11pm
OverclockZone Member
Join Date:
3 Mar 2008
Posts:
2469
Share
Tweet
#2
12 Sep 2008, 18:48:24
ภาษาซีเคยเขียน แต่ C กับ C# นะครับ แต่เท่าที่ดูๆแล้ว
ตัวแปร r มันไม่มีค่าเริ่มต้นอ่ะครับคือมันจะเป็นค่ามั่วๆอะไรซักอย่าง ถ้าเป็นภาษาซีมันจะเป็นเลขมั่วๆขึ้นมาอ่ะครับ
แต่เทอร์โบซีนี่ไม่รู้นะครับ
Comment
Post
Cancel
championrpg
OverclockZone Member
Join Date:
14 Jan 2008
Posts:
1521
Share
Tweet
#3
12 Sep 2008, 18:54:53
ลองเข้าไปกดรันไฟล์ noname00.exe ดูเองรึยัง?
Comment
Post
Cancel
supertip
OverclockZone Member
Join Date:
24 Sep 2007
Posts:
344
Share
Tweet
#4
12 Sep 2008, 19:06:35
ได้แล้วครับ ขอบคุณมากๆครับ
Comment
Post
Cancel
zeniths
OverclockZone Member
Join Date:
24 May 2008
Posts:
75
Share
Tweet
#5
13 Sep 2008, 18:03:35
มันเปิดอันเก่าค้าไว้อยู่งับ
kill process อันเก่าทิ้งซะก่อนสิงับ
ส่วนโปรแกรม
ผิดที่ printf(""); อะครับ
ตัวแปลที่แสดง ไม่ต้องเปน pointer ครับ เอา & หน้าตัวแปร a ออก
ก็จะได้โปรแกรม หา พ.ท. วงกลม
แต่ว่าส่วนมากเค้าจะใช้ include <MATH.H>
แล้วใช้ PI
ตัวนี้เอาน่ะงับ เพราะจะได้ทศนิยมที่เยอะและได้ค่าที่ตรงกว่า สำหรับคนที่ต้องการความละเอียดน่ะ
ไม่งั้นก็
#define pi=3.414
ไว้ท่หัวโปรแกรมก่อน void main เลยงับ
Last edited by
zeniths
;
13 Sep 2008, 18:05:09
.
Reason:
.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
X
Comment