Benq Performance Center V15, S series user ~ come n' Join us ~
Benq Performance Center V15, S series user ~ come n' Join us ~
|
|
Nov 29 2009, 12:22 PM
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
22,158 posts Joined: Aug 2008 From: Singapore |
giving my AMD CPU a little shock therapy...
|
|
|
|
|
|
Nov 29 2009, 12:51 PM
|
![]() ![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
6,439 posts Joined: Oct 2008 From: Mlc to PP ? |
|
|
|
Nov 29 2009, 12:59 PM
|
|
Elite
14,813 posts Joined: Nov 2006 |
why stringstream it?
not just use if (b==1) then c="january" ? or defind c as array, keep it as c[11]={ jan, feb, mar,..., dec}; then can use cout << c[b-1] where c[0] = jan, c[1]=feb, etc.... |
|
|
Nov 29 2009, 01:11 PM
|
![]() ![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
6,439 posts Joined: Oct 2008 From: Mlc to PP ? |
|
|
|
Nov 29 2009, 01:13 PM
|
|
Elite
14,813 posts Joined: Nov 2006 |
okay then.
why not just use if (b==1) then c="january" ? |
|
|
Nov 29 2009, 01:15 PM
|
![]() ![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
6,439 posts Joined: Oct 2008 From: Mlc to PP ? |
can not !!
bcoz b ald is int b ! can not convert into if (b==3) then c ="january" ?; |
|
|
|
|
|
Nov 29 2009, 01:17 PM
|
|
Elite
14,813 posts Joined: Nov 2006 |
well, b is int right? why can not compare?
if (b==1) c="january"; can not work? |
|
|
Nov 29 2009, 01:23 PM
|
![]() ![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
6,439 posts Joined: Oct 2008 From: Mlc to PP ? |
b can be 1 or 2 o~
b ald use in if .. else if section !! >< Added on November 29, 2009, 1:25 pmcan not ah .... [attachmentid=1328611] This post has been edited by Dackson: Nov 29 2009, 01:28 PM |
|
|
Nov 29 2009, 01:35 PM
|
|
Elite
14,813 posts Joined: Nov 2006 |
you declare b twice?
if b already string, compare it using if (b=="1") |
|
|
Nov 29 2009, 01:38 PM
|
![]() ![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
6,439 posts Joined: Oct 2008 From: Mlc to PP ? |
sorry ...
it's work ald ... bcoz i forgot to delete old error ^^ hv any code that can straight away terminate the program and closed the window ?? |
|
|
Nov 29 2009, 01:41 PM
|
|
Elite
14,813 posts Joined: Nov 2006 |
return 0;
no? |
|
|
Nov 29 2009, 01:44 PM
|
![]() ![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
6,439 posts Joined: Oct 2008 From: Mlc to PP ? |
like void exist ?/
something that when user select it, it will auto closed the program even auto closed the cmd window ?? Added on November 29, 2009, 1:45 pmcan make the program write chinese word out ?? This post has been edited by Dackson: Nov 29 2009, 01:45 PM |
|
|
Nov 29 2009, 01:50 PM
|
![]() ![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
3,187 posts Joined: Jan 2008 |
hey,i m using 2gb ram now.and my usage is normally is only 600mhz.should i upgrade my ram to 4gb since ddr2 is getting more n more exp?
|
|
|
|
|
|
Nov 29 2009, 01:51 PM
|
|
Elite
14,813 posts Joined: Nov 2006 |
not sure how those being done.
|
|
|
Nov 29 2009, 01:57 PM
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
22,158 posts Joined: Aug 2008 From: Singapore |
|
|
|
Nov 29 2009, 01:58 PM
|
|
Elite
14,813 posts Joined: Nov 2006 |
|
|
|
Nov 29 2009, 02:06 PM
|
![]() ![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
3,187 posts Joined: Jan 2008 |
QUOTE(astria @ Nov 29 2009, 01:57 PM) QUOTE(lee_what2004 @ Nov 29 2009, 01:58 PM) huh?i thought the price is increasing as ddr3 is becoming more n more popularas last time 2gb ram was just rm80 now is already rm110. |
|
|
Nov 29 2009, 02:11 PM
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
22,158 posts Joined: Aug 2008 From: Singapore |
that was because RAM makers were cutting back on production drastically due to the excessive glut and ridiculously low price in the market...
now that they are making profit again, they are increasing their production rate... they are now producing at roughly 50-60% of pre-economic crisis lvl... |
|
|
Nov 29 2009, 02:11 PM
|
|
Elite
14,813 posts Joined: Nov 2006 |
because the production for ddr2 was stop, now is being resumed, iinm~
|
|
|
Nov 29 2009, 02:20 PM
|
![]() ![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
3,187 posts Joined: Jan 2008 |
oh.okok.thanx a lot
|
|
Topic ClosedOptions
|
| Change to: | 0.0263sec
0.53
6 queries
GZIP Disabled
Time is now: 24th December 2025 - 09:26 PM |