Overclock.net › Forums › Everything Else › Member Milestones › My first C++ programs.
New Posts  All Forums:Forum Nav:

My first C++ programs.

post #1 of 6
Thread Starter 
Never coded C++ before in my life, been taking a class on it for 2 days so far.

This is the one I'm most proud of. It checks if numbers are primes or not.
http://railfan844.com/uploads/primes.cpp

This one is a temperature converter.
http://railfan844.com/uploads/temp.cpp

This one sorts 2 numbers from least to greatest.
http://railfan844.com/uploads/simplesort.cpp

This one sorts 5 numbers.
http://railfan844.com/uploads/complexsort.cpp

This one is a troll program. It rick rolls you and then shuts down your system after 60 seconds using the -F flag to prevent you from aborting it.
http://railfan844.com/uploads/whee.cpp

C++ is cool

Edit. I do have EXE's if anyone trusts me enough to give them those instead so they don't have to compile them.
The Butthurt Box
(21 items)
 
   
CPUMotherboardGraphicsGraphics
Intel Core i5 2500K P67 Professional AMD Radeon HD 6950 unlock NVIDIA GeForce GTX 460 2gb 
RAMRAMHard DriveHard Drive
G.Skill Ripjaws G.Skill Ripjaws Intel X25-V Seagate Barracuda 
Hard DriveOptical DriveOSMonitor
WD Goflex USB 3.0 24x DVD R/W DL Win7 Ultermate 64 Acer 20in 1600x900 
MonitorMonitorMonitorKeyboard
Compaq 20in 1600x900 17in Dell 1280x1024 19in Gateway 1280x1024 Razer Blackwidow mech w/ cherry MX blues 
PowerCaseMouseAudio
Kingwin LZ-750 HAF 932 + sound activated lights Logitech G500 Rosewill USB headset 
CPUMotherboardGraphicsRAM
Pentium 4 3.2ghz w/ HT HP Intel IGP 4gb Mushkin DDR2 
Hard DriveOSPowerCase
80gb sata WinXP Pro HP OEM HP Small form factor 
  hide details  
Reply
The Butthurt Box
(21 items)
 
   
CPUMotherboardGraphicsGraphics
Intel Core i5 2500K P67 Professional AMD Radeon HD 6950 unlock NVIDIA GeForce GTX 460 2gb 
RAMRAMHard DriveHard Drive
G.Skill Ripjaws G.Skill Ripjaws Intel X25-V Seagate Barracuda 
Hard DriveOptical DriveOSMonitor
WD Goflex USB 3.0 24x DVD R/W DL Win7 Ultermate 64 Acer 20in 1600x900 
MonitorMonitorMonitorKeyboard
Compaq 20in 1600x900 17in Dell 1280x1024 19in Gateway 1280x1024 Razer Blackwidow mech w/ cherry MX blues 
PowerCaseMouseAudio
Kingwin LZ-750 HAF 932 + sound activated lights Logitech G500 Rosewill USB headset 
CPUMotherboardGraphicsRAM
Pentium 4 3.2ghz w/ HT HP Intel IGP 4gb Mushkin DDR2 
Hard DriveOSPowerCase
80gb sata WinXP Pro HP OEM HP Small form factor 
  hide details  
Reply
post #2 of 6
Does the rick roll really work?

I dont feel like shutting down right now.
New
(11 items)
 
  
CPUMotherboardGraphicsRAM
2500k @5ghz Asus P8P67 Evo 6970 @ 1000/1450 8GB Ripjaws DDR31600 Cas8 
Hard DriveCoolingOSMonitor
Samsung 850 Pro 128GB + WD 1TB XSPC Rasa,RX360,D5 w/EK top,Ek150 res,AP-15's 7 Pro Asus VW266H 
KeyboardPowerCase
G11 AX850 Corsair 800D 
  hide details  
Reply
New
(11 items)
 
  
CPUMotherboardGraphicsRAM
2500k @5ghz Asus P8P67 Evo 6970 @ 1000/1450 8GB Ripjaws DDR31600 Cas8 
Hard DriveCoolingOSMonitor
Samsung 850 Pro 128GB + WD 1TB XSPC Rasa,RX360,D5 w/EK top,Ek150 res,AP-15's 7 Pro Asus VW266H 
KeyboardPowerCase
G11 AX850 Corsair 800D 
  hide details  
Reply
post #3 of 6
Thread Starter 
Quote:
Originally Posted by mastical View Post
Does the rick roll really work?

I dont feel like shutting down right now.
Yes it does, it points you to this website.

It also includes a couple message boxes talking about viruses in Engrish to scare whoever is using it
The Butthurt Box
(21 items)
 
   
CPUMotherboardGraphicsGraphics
Intel Core i5 2500K P67 Professional AMD Radeon HD 6950 unlock NVIDIA GeForce GTX 460 2gb 
RAMRAMHard DriveHard Drive
G.Skill Ripjaws G.Skill Ripjaws Intel X25-V Seagate Barracuda 
Hard DriveOptical DriveOSMonitor
WD Goflex USB 3.0 24x DVD R/W DL Win7 Ultermate 64 Acer 20in 1600x900 
MonitorMonitorMonitorKeyboard
Compaq 20in 1600x900 17in Dell 1280x1024 19in Gateway 1280x1024 Razer Blackwidow mech w/ cherry MX blues 
PowerCaseMouseAudio
Kingwin LZ-750 HAF 932 + sound activated lights Logitech G500 Rosewill USB headset 
CPUMotherboardGraphicsRAM
Pentium 4 3.2ghz w/ HT HP Intel IGP 4gb Mushkin DDR2 
Hard DriveOSPowerCase
80gb sata WinXP Pro HP OEM HP Small form factor 
  hide details  
Reply
The Butthurt Box
(21 items)
 
   
CPUMotherboardGraphicsGraphics
Intel Core i5 2500K P67 Professional AMD Radeon HD 6950 unlock NVIDIA GeForce GTX 460 2gb 
RAMRAMHard DriveHard Drive
G.Skill Ripjaws G.Skill Ripjaws Intel X25-V Seagate Barracuda 
Hard DriveOptical DriveOSMonitor
WD Goflex USB 3.0 24x DVD R/W DL Win7 Ultermate 64 Acer 20in 1600x900 
MonitorMonitorMonitorKeyboard
Compaq 20in 1600x900 17in Dell 1280x1024 19in Gateway 1280x1024 Razer Blackwidow mech w/ cherry MX blues 
PowerCaseMouseAudio
Kingwin LZ-750 HAF 932 + sound activated lights Logitech G500 Rosewill USB headset 
CPUMotherboardGraphicsRAM
Pentium 4 3.2ghz w/ HT HP Intel IGP 4gb Mushkin DDR2 
Hard DriveOSPowerCase
80gb sata WinXP Pro HP OEM HP Small form factor 
  hide details  
Reply
post #4 of 6
How do i open the .cpp?
New
(11 items)
 
  
CPUMotherboardGraphicsRAM
2500k @5ghz Asus P8P67 Evo 6970 @ 1000/1450 8GB Ripjaws DDR31600 Cas8 
Hard DriveCoolingOSMonitor
Samsung 850 Pro 128GB + WD 1TB XSPC Rasa,RX360,D5 w/EK top,Ek150 res,AP-15's 7 Pro Asus VW266H 
KeyboardPowerCase
G11 AX850 Corsair 800D 
  hide details  
Reply
New
(11 items)
 
  
CPUMotherboardGraphicsRAM
2500k @5ghz Asus P8P67 Evo 6970 @ 1000/1450 8GB Ripjaws DDR31600 Cas8 
Hard DriveCoolingOSMonitor
Samsung 850 Pro 128GB + WD 1TB XSPC Rasa,RX360,D5 w/EK top,Ek150 res,AP-15's 7 Pro Asus VW266H 
KeyboardPowerCase
G11 AX850 Corsair 800D 
  hide details  
Reply
post #5 of 6
Thread Starter 
Quote:
Originally Posted by mastical View Post
How do i open the .cpp?
You have to compile them in a program like Visual Studio, or I can link you the EXE's, but that means I could tack on malicious software in there as well, not that I would do something like that, but that was the reason I just linked to the CPP files.
The Butthurt Box
(21 items)
 
   
CPUMotherboardGraphicsGraphics
Intel Core i5 2500K P67 Professional AMD Radeon HD 6950 unlock NVIDIA GeForce GTX 460 2gb 
RAMRAMHard DriveHard Drive
G.Skill Ripjaws G.Skill Ripjaws Intel X25-V Seagate Barracuda 
Hard DriveOptical DriveOSMonitor
WD Goflex USB 3.0 24x DVD R/W DL Win7 Ultermate 64 Acer 20in 1600x900 
MonitorMonitorMonitorKeyboard
Compaq 20in 1600x900 17in Dell 1280x1024 19in Gateway 1280x1024 Razer Blackwidow mech w/ cherry MX blues 
PowerCaseMouseAudio
Kingwin LZ-750 HAF 932 + sound activated lights Logitech G500 Rosewill USB headset 
CPUMotherboardGraphicsRAM
Pentium 4 3.2ghz w/ HT HP Intel IGP 4gb Mushkin DDR2 
Hard DriveOSPowerCase
80gb sata WinXP Pro HP OEM HP Small form factor 
  hide details  
Reply
The Butthurt Box
(21 items)
 
   
CPUMotherboardGraphicsGraphics
Intel Core i5 2500K P67 Professional AMD Radeon HD 6950 unlock NVIDIA GeForce GTX 460 2gb 
RAMRAMHard DriveHard Drive
G.Skill Ripjaws G.Skill Ripjaws Intel X25-V Seagate Barracuda 
Hard DriveOptical DriveOSMonitor
WD Goflex USB 3.0 24x DVD R/W DL Win7 Ultermate 64 Acer 20in 1600x900 
MonitorMonitorMonitorKeyboard
Compaq 20in 1600x900 17in Dell 1280x1024 19in Gateway 1280x1024 Razer Blackwidow mech w/ cherry MX blues 
PowerCaseMouseAudio
Kingwin LZ-750 HAF 932 + sound activated lights Logitech G500 Rosewill USB headset 
CPUMotherboardGraphicsRAM
Pentium 4 3.2ghz w/ HT HP Intel IGP 4gb Mushkin DDR2 
Hard DriveOSPowerCase
80gb sata WinXP Pro HP OEM HP Small form factor 
  hide details  
Reply
post #6 of 6
give me the exe but virus free please

ill send this to every computer illiterate person i know
New
(11 items)
 
  
CPUMotherboardGraphicsRAM
2500k @5ghz Asus P8P67 Evo 6970 @ 1000/1450 8GB Ripjaws DDR31600 Cas8 
Hard DriveCoolingOSMonitor
Samsung 850 Pro 128GB + WD 1TB XSPC Rasa,RX360,D5 w/EK top,Ek150 res,AP-15's 7 Pro Asus VW266H 
KeyboardPowerCase
G11 AX850 Corsair 800D 
  hide details  
Reply
New
(11 items)
 
  
CPUMotherboardGraphicsRAM
2500k @5ghz Asus P8P67 Evo 6970 @ 1000/1450 8GB Ripjaws DDR31600 Cas8 
Hard DriveCoolingOSMonitor
Samsung 850 Pro 128GB + WD 1TB XSPC Rasa,RX360,D5 w/EK top,Ek150 res,AP-15's 7 Pro Asus VW266H 
KeyboardPowerCase
G11 AX850 Corsair 800D 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Member Milestones
Overclock.net › Forums › Everything Else › Member Milestones › My first C++ programs.