New Posts  All Forums:Forum Nav:

C++ templates

post #1 of 3
Thread Starter 
*delete
Edited by surfbumb - 3/12/13 at 8:44pm
Black Silence
(15 items)
 
  
CPUMotherboardRAMHard Drive
i5 3570k @ 4.5 GHz Asus P8Z77-M Pro Kingston HyperX Genesis 8 GB - 1600 MHz Seagate Barracuda 250 GB 
Optical DriveCoolingOSMonitor
Samsung WriteMaster Noctua NH-D14 Windows 10 ASUS VS24AH-P 
KeyboardPowerCaseMouse
Logitech Navigator Enermax Infiniti 650W Fractal R3 Black Pearl Razer Death Adder 
Mouse PadAudio
SteelSeries QcK Mass Altec Lansing FX4021 
  hide details  
Reply
Black Silence
(15 items)
 
  
CPUMotherboardRAMHard Drive
i5 3570k @ 4.5 GHz Asus P8Z77-M Pro Kingston HyperX Genesis 8 GB - 1600 MHz Seagate Barracuda 250 GB 
Optical DriveCoolingOSMonitor
Samsung WriteMaster Noctua NH-D14 Windows 10 ASUS VS24AH-P 
KeyboardPowerCaseMouse
Logitech Navigator Enermax Infiniti 650W Fractal R3 Black Pearl Razer Death Adder 
Mouse PadAudio
SteelSeries QcK Mass Altec Lansing FX4021 
  hide details  
Reply
post #2 of 3
If I'm understanding what you are trying to do...
Quote:
// define m as an Array of Array pointers
Code:
Array<Array<Element>*> m;

Quote:
//use the Array::operator<< to write this function...prints out the 2-d matrix
Code:
for (int i = 0; i < rows; ++i)
{
    out << m[i];
}
Gaming 1
(17 items)
 
Gaming 2
(10 items)
 
 
CPUMotherboardGraphicsRAM
Intel i7-4770k @ 4.6 Asus Maximus Hero VI 2 x Gigabyte R9 290 w/ EK block Crossfire 8 GB Corsair Dominator 1866 
Hard DriveHard DriveCoolingCooling
Samsung 840 Pro 128 GB WD Black 2 TB EK Supremacy EVO XSPC RX360/ AlphaCool XT45 240 
CoolingMonitorKeyboardPower
Swiftech MCP655 ASUS MG278Q Ducky Shine 3 TKL White LED Corsair AX850 
Case
NZXT Switch 810 Gun Metal 
CPUMotherboardGraphicsRAM
Intel i5-3570k @ 4.5 MSI Z77A-G45 SAPPHIRE NITRO Radeon R9 390 G.SKILL Ares 8GB 1600 
Hard DriveHard DriveOSMonitor
Samsung EVO 120GB WD Black 750GB Phanteks PH-TC14PE_BK QNIX 27in IPS @ 96Hz 
PowerCase
Corsair HX850 Cooler Master ATCS 840 
CPUMotherboardGraphicsRAM
AMD Phenom II 965 Asrock 890FX Deluxe4  Powercolor TurboDuo AXR9 280X G.SKILL Ares Series 4GB 
Hard DriveCoolingOSPower
Samsung 840 EVO 128GB, 4xWD Red 3TB, WD Green 1... Cooler Master Hyper 212+ Ubuntu Cooler Master V1000 
Case
Norco RPC-450B 
  hide details  
Reply
Gaming 1
(17 items)
 
Gaming 2
(10 items)
 
 
CPUMotherboardGraphicsRAM
Intel i7-4770k @ 4.6 Asus Maximus Hero VI 2 x Gigabyte R9 290 w/ EK block Crossfire 8 GB Corsair Dominator 1866 
Hard DriveHard DriveCoolingCooling
Samsung 840 Pro 128 GB WD Black 2 TB EK Supremacy EVO XSPC RX360/ AlphaCool XT45 240 
CoolingMonitorKeyboardPower
Swiftech MCP655 ASUS MG278Q Ducky Shine 3 TKL White LED Corsair AX850 
Case
NZXT Switch 810 Gun Metal 
CPUMotherboardGraphicsRAM
Intel i5-3570k @ 4.5 MSI Z77A-G45 SAPPHIRE NITRO Radeon R9 390 G.SKILL Ares 8GB 1600 
Hard DriveHard DriveOSMonitor
Samsung EVO 120GB WD Black 750GB Phanteks PH-TC14PE_BK QNIX 27in IPS @ 96Hz 
PowerCase
Corsair HX850 Cooler Master ATCS 840 
CPUMotherboardGraphicsRAM
AMD Phenom II 965 Asrock 890FX Deluxe4  Powercolor TurboDuo AXR9 280X G.SKILL Ares Series 4GB 
Hard DriveCoolingOSPower
Samsung 840 EVO 128GB, 4xWD Red 3TB, WD Green 1... Cooler Master Hyper 212+ Ubuntu Cooler Master V1000 
Case
Norco RPC-450B 
  hide details  
Reply
post #3 of 3
Thread Starter 
+REP
Black Silence
(15 items)
 
  
CPUMotherboardRAMHard Drive
i5 3570k @ 4.5 GHz Asus P8Z77-M Pro Kingston HyperX Genesis 8 GB - 1600 MHz Seagate Barracuda 250 GB 
Optical DriveCoolingOSMonitor
Samsung WriteMaster Noctua NH-D14 Windows 10 ASUS VS24AH-P 
KeyboardPowerCaseMouse
Logitech Navigator Enermax Infiniti 650W Fractal R3 Black Pearl Razer Death Adder 
Mouse PadAudio
SteelSeries QcK Mass Altec Lansing FX4021 
  hide details  
Reply
Black Silence
(15 items)
 
  
CPUMotherboardRAMHard Drive
i5 3570k @ 4.5 GHz Asus P8Z77-M Pro Kingston HyperX Genesis 8 GB - 1600 MHz Seagate Barracuda 250 GB 
Optical DriveCoolingOSMonitor
Samsung WriteMaster Noctua NH-D14 Windows 10 ASUS VS24AH-P 
KeyboardPowerCaseMouse
Logitech Navigator Enermax Infiniti 650W Fractal R3 Black Pearl Razer Death Adder 
Mouse PadAudio
SteelSeries QcK Mass Altec Lansing FX4021 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming