Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Application Programming

Reply
 
LinkBack Thread Tools
Old 09-13-06   #1 (permalink)
4.0ghz
 
SoaDMTGguy's Avatar
 
intel nvidia

Join Date: Mar 2005
Location: Nottingham PA
Posts: 4,929

Rep: 306 SoaDMTGguy is a proven memberSoaDMTGguy is a proven memberSoaDMTGguy is a proven memberSoaDMTGguy is a proven member
Unique Rep: 227
FAQs Submitted: 2
Folding Team Rank: 1164
Hardware Reviews: 3
Trader Rating: 15
Default CPU Speed converter

I am learning C++, and I desided to take a crack at writing my own program (so far I have just be modifying programs out of a book). Attached is a .zip file contaning the .exe for my program, as well as the source code as a .txt, if you care to make changes

I swear this is not a virurs or anything that will screw up your computer in any way. Just a little program I wrote to show off what I have learned so far
Attached Files
File Type: zip CPU speed converter v2.1.zip (130.7 KB, 5032 views)
__________________
Quote:
Originally Posted by PaulTa View Post
I'm like Obi wan. I just pop in and out, offer vague comments and advice, and then tell you to use the force.

System: Teh MacBook!
CPU
Intel Core 2 Duo T7500 2.2 GHz
Motherboard
Apple MacBook Pro Stock Motherboard
Memory
4 GB (2x 2 GB) G.Skill DDR2 667 MHz DDR2
Graphics Card
nVidia GeForce Go 8600 GT 128 MB
Hard Drive
120 GB Fujitsu SATA150
Sound Card
Intel Sata Rosea HD Audio
Power Supply
Apple Stock Power Adapter
Case
15" Apple Aluminum MacBook Pro Case
CPU cooling
Stock
GPU cooling
Stock
OS
OS X 10.5 Leopard / Windows XP Pro / Fedora 8
Monitor
15" Apple LED Backlit MacBook Pro Matt Display

Last edited by SoaDMTGguy : 10-12-06 at 04:22 PM.
SoaDMTGguy is offline I fold for Overclock.net Overclocked Account   Reply With Quote
Old 09-13-06   #2 (permalink)
Intel Overclocker
 
amped's Avatar
 
intel nvidia

Join Date: Oct 2005
Posts: 1,694

Rep: 123 amped is acknowledged by manyamped is acknowledged by many
Unique Rep: 105
FAQs Submitted: 5
Folding Team Rank: 384
Hardware Reviews: 2
Trader Rating: 1
Default

Spelled comparable wrong . Other than that, I like it.

Keep working at it.
__________________
System: My System
CPU
Intel Core 2 Quad Q6700 Kentsfield
Motherboard
DFI DK P35-T2RS
Memory
G.SKILL DDR2-800 4x2GB
Graphics Card
eVGA 9800GTX 512MB
Hard Drive
160GB WD SATA2
Sound Card
Asus Xonar DX 7.1
Power Supply
PC Power & Cooling 750W
Case
Antec P182
CPU cooling
OCZ Vendetta 2
GPU cooling
Stock
Monitor
Acer 22 in.
amped is offline I fold for Overclock.net   Reply With Quote
Old 09-13-06   #3 (permalink)
VALVe's biggest Fanboy
 
Puckbandit35's Avatar
 
intel nvidia

Join Date: Feb 2006
Location: Fresno, Ca
Posts: 2,752

Rep: 285 Puckbandit35 is a proven memberPuckbandit35 is a proven memberPuckbandit35 is a proven member
Unique Rep: 191
Folding Team Rank: 1511
Trader Rating: 8
Default

thats pretty cool..that can be quite useful
__________________
Quote:
Originally Posted by Fatal05 View Post
Why would you want to get rid of any Valve game anyway? Its like the fine art of the gaming industry. And EA is like the struggling community college art major who can't draw a circle.
Steam Community + Xbox Live = Puckbandit35
Gordan Freeman > Master Chief

System: The Thing That Should Not Be
CPU
Intel Core 2 Q6600
Motherboard
DFI LP UT P35 -TR2
Memory
4GB OCZ SLI DDR2 800
Graphics Card
eVGA GTX 260 Core 216
Hard Drive
2 WD 150 GB Raptors (Raid 0) 1 200 GB External
Sound Card
Sound Blaster Audigy 4 / Logitech X-530
Power Supply
FSP 700W Epsilon Quad Sli
Case
Aspire X-Navigator Blue (Painted Inside Black)
CPU cooling
Tuniq Tower
GPU cooling
Stock
OS
Windows Vista Ultimate x64
Monitor
Chiemi 22' WS 1680/1050
Puckbandit35 is offline I fold for Overclock.net Overclocked Account   Reply With Quote
Old 09-13-06   #4 (permalink)
$till TrollandaryU2K
 
Retrospekt's Avatar
 
intel nvidia

Join Date: Feb 2006
Location: /dev/sda
Posts: 6,973
Blog Entries: 6

Rep: 504 Retrospekt is becoming famousRetrospekt is becoming famousRetrospekt is becoming famousRetrospekt is becoming famousRetrospekt is becoming famousRetrospekt is becoming famous
Unique Rep: 347
FAQs Submitted: 2
Folding Team Rank: 447
Hardware Reviews: 4
Trader Rating: 9
Default

It says an amd of 1.33 is comparable to my 2.6. I thought the ratio was 6:9 not 6:12.
Oh yeah, its clean.
__________________
Quote:
Originally Posted by Marin in chat
Marin: Someone told me to hide her in a river
>>oops, meant to be a whisper
>>
>> >_>
>> <_<
Marin went away.


System: Budget system
CPU
E1200 @ 3.0
Motherboard
Gigabyte P35-DS3L
Memory
2x1gb G.Skill DDR2 800 (Red Heatspreaders)
Graphics Card
XFX 8800gt 512mb
Hard Drive
WD 160gb Sata
Power Supply
Antec TruePower 430w
Case
Coolermaster Centurion 5
CPU cooling
Tuniq Tower
GPU cooling
Stock
OS
XP
Monitor
19" WS Hanns-G
Retrospekt is offline I fold for Overclock.net Overclocked Account Retrospekt's Gallery   Reply With Quote
Old 09-13-06   #5 (permalink)
PC Gamer
 
intel nvidia

Join Date: Apr 2006
Posts: 4,265
Blog Entries: 8

Rep: 119 RickJS is acknowledged by manyRickJS is acknowledged by many
Unique Rep: 86
FAQs Submitted: 1
Folding Team Rank: 1886
Trader Rating: 1
Default

Umm, sorry. I don't understand what it does...

What do you mean comparable?
__________________
System: Phrack
CPU
Q6600 B3 @ 2.4
Motherboard
ASUS x38 Maximus Extreme
Memory
G.Skill 2GB DDR3
Graphics Card
Gigabyte 8800 GT
Hard Drive
WD 250GB SATA/4GB Flash
Sound Card
Creative X-FI XtremeGamer
Power Supply
CORSAIR 620HX
Case
ANTEC 900
CPU cooling
T.R.U.E. w/AS5
GPU cooling
Stock
OS
Windows Vista Ultimate 64bit
Monitor
Westinghouse 22" WS 5 MS
RickJS is offline I fold for Overclock.net   Reply With Quote
Old 09-13-06   #6 (permalink)
$till TrollandaryU2K
 
Retrospekt's Avatar
 
intel nvidia

Join Date: Feb 2006
Location: /dev/sda
Posts: 6,973
Blog Entries: 6

Rep: 504 Retrospekt is becoming famousRetrospekt is becoming famousRetrospekt is becoming famousRetrospekt is becoming famousRetrospekt is becoming famousRetrospekt is becoming famous
Unique Rep: 347
FAQs Submitted: 2
Folding Team Rank: 447
Hardware Reviews: 4
Trader Rating: 9
Default

It means that #.##ghz of an intel processor = #.##ghz of an amd processor.
The ghz differ because amd's do 9 ops per cycle and intels do 6 ops percycle. Conroes do 12.
__________________
Quote:
Originally Posted by Marin in chat
Marin: Someone told me to hide her in a river
>>oops, meant to be a whisper
>>
>> >_>
>> <_<
Marin went away.


System: Budget system
CPU
E1200 @ 3.0
Motherboard
Gigabyte P35-DS3L
Memory
2x1gb G.Skill DDR2 800 (Red Heatspreaders)
Graphics Card
XFX 8800gt 512mb
Hard Drive
WD 160gb Sata
Power Supply
Antec TruePower 430w
Case
Coolermaster Centurion 5
CPU cooling
Tuniq Tower
GPU cooling
Stock
OS
XP
Monitor
19" WS Hanns-G
Retrospekt is offline I fold for Overclock.net Overclocked Account Retrospekt's Gallery   Reply With Quote
Old 09-13-06   #7 (permalink)
PC Gamer
 
intel nvidia

Join Date: Apr 2006
Posts: 4,265
Blog Entries: 8

Rep: 119 RickJS is acknowledged by manyRickJS is acknowledged by many
Unique Rep: 86
FAQs Submitted: 1
Folding Team Rank: 1886
Trader Rating: 1
Default

I understand that AMD normally does 9 and intel 6 up until conroe.

I just thought my answer was weird. So, an AMD 2.2 would be equal to a P4 3.0?
__________________
System: Phrack
CPU
Q6600 B3 @ 2.4
Motherboard
ASUS x38 Maximus Extreme
Memory
G.Skill 2GB DDR3
Graphics Card
Gigabyte 8800 GT
Hard Drive
WD 250GB SATA/4GB Flash
Sound Card
Creative X-FI XtremeGamer
Power Supply
CORSAIR 620HX
Case
ANTEC 900
CPU cooling
T.R.U.E. w/AS5
GPU cooling
Stock
OS
Windows Vista Ultimate 64bit
Monitor
Westinghouse 22" WS 5 MS
RickJS is offline I fold for Overclock.net   Reply With Quote
Old 09-13-06   #8 (permalink)
4.0ghz
 
SoaDMTGguy's Avatar
 
intel nvidia

Join Date: Mar 2005
Location: Nottingham PA
Posts: 4,929

Rep: 306 SoaDMTGguy is a proven memberSoaDMTGguy is a proven memberSoaDMTGguy is a proven memberSoaDMTGguy is a proven member
Unique Rep: 227
FAQs Submitted: 2
Folding Team Rank: 1164
Hardware Reviews: 3
Trader Rating: 15
Default

Ok, I have updated the first post with the spell-checked version of the program

Also, Retrospekt, the reason it said 2.6 was equil to 1.3 is because I wrote it to expect an integer value, not a floating point (x.x) value, so when you typed "2.6" it got confused. That is why it says "enter the CPU speed in MHz"
__________________
Quote:
Originally Posted by PaulTa View Post
I'm like Obi wan. I just pop in and out, offer vague comments and advice, and then tell you to use the force.

System: Teh MacBook!
CPU
Intel Core 2 Duo T7500 2.2 GHz
Motherboard
Apple MacBook Pro Stock Motherboard
Memory
4 GB (2x 2 GB) G.Skill DDR2 667 MHz DDR2
Graphics Card
nVidia GeForce Go 8600 GT 128 MB
Hard Drive
120 GB Fujitsu SATA150
Sound Card
Intel Sata Rosea HD Audio
Power Supply
Apple Stock Power Adapter
Case
15" Apple Aluminum MacBook Pro Case
CPU cooling
Stock
GPU cooling
Stock
OS
OS X 10.5 Leopard / Windows XP Pro / Fedora 8
Monitor
15" Apple LED Backlit MacBook Pro Matt Display
SoaDMTGguy is offline I fold for Overclock.net Overclocked Account   Reply With Quote
Old 09-13-06   #9 (permalink)
PC Gamer
 
intel nvidia

Join Date: Apr 2006
Posts: 4,265
Blog Entries: 8

Rep: 119 RickJS is acknowledged by manyRickJS is acknowledged by many
Unique Rep: 86
FAQs Submitted: 1
Folding Team Rank: 1886
Trader Rating: 1
Default

How accurate is it?
__________________
System: Phrack
CPU
Q6600 B3 @ 2.4
Motherboard
ASUS x38 Maximus Extreme
Memory
G.Skill 2GB DDR3
Graphics Card
Gigabyte 8800 GT
Hard Drive
WD 250GB SATA/4GB Flash
Sound Card
Creative X-FI XtremeGamer
Power Supply
CORSAIR 620HX
Case
ANTEC 900
CPU cooling
T.R.U.E. w/AS5
GPU cooling
Stock
OS
Windows Vista Ultimate 64bit
Monitor
Westinghouse 22" WS 5 MS
RickJS is offline I fold for Overclock.net   Reply With Quote
Old 09-13-06   #10 (permalink)
WaterCooler
 
intel nvidia

Join Date: Sep 2006
Location: La Quinta, CA
Posts: 676

Rep: 42 nagal is acknowledged by some
Unique Rep: 34
Folding Team Rank: 1432
Trader Rating: 20
Default

SoaDMTGguy,

You really need to get into the habit of intializing your varibles. Trust me on this. While some languages/compilers will do it for you automatically, Visual Studio C++ does not.

When you assign a variable in C++, its value becomes whatever is currently in the memory where it is located.

So where you have:

int athlon;
int pentium;
int c2d;

They are not set to 0 (as in Zero) as in some languages.

Just a little knowledge for ya on your road to programming goodness
__________________
System: Home built MacPro
CPU
Dual ES Clovertowns
Motherboard
MacPro
Memory
4 x 2GB FB-DIMM
Graphics Card
Nvidia 7300GT
Hard Drive
Which one?
Sound Card
Presonus FirePod
Power Supply
MacPro 980W
Case
MacPro
CPU cooling
Dual Thermal Right HR-01X
OS
OS X 10.5
Monitor
Dual ViewSonic VP201B
nagal is offline I fold for Overclock.net   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -4. The time now is 09:03 PM.


Overclock.net is a Carbon Neutral Site Creative Commons License Internet Security By ControlScan

Terms of Service / Forum Rules | Privacy Policy | Advertising | Become an Official Vendor
Copyright © 2008 Shogun Interactive Development. Most rights reserved.
Page generated in 0.28674 seconds with 9 queries