Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Application Programming › vJass -> C++ (Differences when switching languages), +rep for help (if i can, first post here)
New Posts  All Forums:Forum Nav:

vJass -> C++ (Differences when switching languages), +rep for help (if i can, first post here) - Page 2

post #11 of 30
The first problem you'll run into, working top down, is a syntactic one - "void" is a restricted keyword in C++, and can only be used to declare certain things (a pointer to something or a function returning something). You can't have an "array of void" because there is no standard for how big a "void" is - C++ needs to know how much memory to allocate for your array, but void does not have an explicit size.

C++ will probably have more frequent restrictions like this than you're used to, as it works on a relatively low level.

Another gotcha to be aware of is that C++ is case sensitive - cin and cout should both be all lowercase. There is no need to terminate if/else statements, while statements, or function decelerations with semicolons. If you put a semicolon after the condition for a while statement, you'll be telling the compiler that you're all finished with the "while" stuff - everything after in your brackets will either be executed regardless of the condition, ignored, or treated as an error depending on the case.

Cleaning up some of the syntax errors (but leaving the logical problems for you - you will need to find some more direct way to call your onHotkey function), you might have something like:
Code:
#include <iostream>
using namespace std;

bool acceptable [200];
void hotkeycode [200];
acceptable[108] = true;
hotkeycode[108] = onHotkey;

void onHotkey() /// just an example
{
  //what you have here is a function prototype - is this what you intended? 
  //see "declaring functions" - http://www.cplusplus.com/doc/tutorial/functions2/
};

int main ()
{
    char hotkey;
    int x = 2;
    while (x == 2)
    {
        cout>>hotkey;
        if (acceptable[hotkey])
        {
            hotkeycode[hotkey];
        }
        else
        {
            cout<<"Hotkey ERROR: You have pressed an invalid hotkey.";
        }
    }
    return 0;
}
Morpheus Mini
(7 items)
 
  
CPUMotherboardGraphicsRAM
i7-6700T SN970 GTX 960 Crucial CT102464BF160B 
Hard DriveOSAudio
Samsung 850 Evo M.2 Windows 10 Pro MOTU Audio Express 
  hide details  
Reply
Morpheus Mini
(7 items)
 
  
CPUMotherboardGraphicsRAM
i7-6700T SN970 GTX 960 Crucial CT102464BF160B 
Hard DriveOSAudio
Samsung 850 Evo M.2 Windows 10 Pro MOTU Audio Express 
  hide details  
Reply
post #12 of 30
Thread Starter 
i was intending to save the function in a variable and call the function based on what keystroke is pressed, ie pressing z calls Function
the function was actually supposed to be a definition but do nothing, not be a prototype, do you see what i mean?

and i know its case sensitive, was following a (fail i guess) tutorial that said cin and cout should be CIN and COUT
Yin
(13 items)
 
Yang
(14 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i7-2600K Sandy Bridge ASUS P8Z68-V PRO PowerColor AX6950 2GBD5-2DH G.SKILL Ripjaws X Series 8GB (2 x 4GB) 
Hard DriveCoolingOSMonitor
Crucial M4 CT128M4SSD2 2.5" SSD Hyper 212 EVO Windows 7 x64 Acer V243HAJbd Black 24" 2ms(GTG) Widescreen 
KeyboardPowerCaseMouse
Microsoft SideWinder X6 Black Keyboard Win USB ... SeaSonic X Series X650 Gold XCLIO Color I Black Steel / Plastic ATX Mid Tow... Microsoft Wireless Mobile Mouse 4000 
Mouse Pad
Black Tightened Leather Circle 
CPUMotherboardGraphicsRAM
Intel Core i7-3960X Extreme Edition Sandy Bridg... ASUS Maximus IV Extreme-Z LGA 1155 Intel Z68 Asus Mars II GeForce GTX 580 x2 (Fermi) 3GB Patriot Gamer 2 Series 16GB (2 x 8GB) 
Hard DriveOptical DriveCoolingOS
OCZ RevoDrive 3 X2 series RVD3X2-FHPX4 SSD HP DVD-ROM Drive Model 481045-B21 Hyper 212 Evo x4 Windows 7 
MonitorKeyboardPowerCase
NEC Display Solutions LCD2190UXp-BK Black 21.3" x2 RAZER Black USB Wired BlackWidow Ultimate Mecha... CISCO PWR-C45-1300ACV Catalyst 4500 Series 1300... Sentey Black Box Series BX2-4292 v2.1 / 4xUSB /... 
MouseAudio
Logitech G700 Black 13 Buttons Tilt Wheel USB R... BOSE Companion 2 Series 
  hide details  
Reply
Yin
(13 items)
 
Yang
(14 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i7-2600K Sandy Bridge ASUS P8Z68-V PRO PowerColor AX6950 2GBD5-2DH G.SKILL Ripjaws X Series 8GB (2 x 4GB) 
Hard DriveCoolingOSMonitor
Crucial M4 CT128M4SSD2 2.5" SSD Hyper 212 EVO Windows 7 x64 Acer V243HAJbd Black 24" 2ms(GTG) Widescreen 
KeyboardPowerCaseMouse
Microsoft SideWinder X6 Black Keyboard Win USB ... SeaSonic X Series X650 Gold XCLIO Color I Black Steel / Plastic ATX Mid Tow... Microsoft Wireless Mobile Mouse 4000 
Mouse Pad
Black Tightened Leather Circle 
CPUMotherboardGraphicsRAM
Intel Core i7-3960X Extreme Edition Sandy Bridg... ASUS Maximus IV Extreme-Z LGA 1155 Intel Z68 Asus Mars II GeForce GTX 580 x2 (Fermi) 3GB Patriot Gamer 2 Series 16GB (2 x 8GB) 
Hard DriveOptical DriveCoolingOS
OCZ RevoDrive 3 X2 series RVD3X2-FHPX4 SSD HP DVD-ROM Drive Model 481045-B21 Hyper 212 Evo x4 Windows 7 
MonitorKeyboardPowerCase
NEC Display Solutions LCD2190UXp-BK Black 21.3" x2 RAZER Black USB Wired BlackWidow Ultimate Mecha... CISCO PWR-C45-1300ACV Catalyst 4500 Series 1300... Sentey Black Box Series BX2-4292 v2.1 / 4xUSB /... 
MouseAudio
Logitech G700 Black 13 Buttons Tilt Wheel USB R... BOSE Companion 2 Series 
  hide details  
Reply
post #13 of 30
Quote:
Originally Posted by GFreak45 View Post

i was intending to save the function in a variable and call the function based on what keystroke is pressed, ie pressing z calls Function
the function was actually supposed to be a definition but do nothing, not be a prototype, do you see what i mean?
and i know its case sensitive, was following a (fail i guess) tutorial that said cin and cout should be CIN and COUT

So you mean a pointer to a function?
Code:
typedef void (*HOTKEYPROC)();

void MyHotKeyProc()
{
}

HOTKEYPROC proc = MyHotKeyProc;
proc();
Ol' Sandy
(28 items)
 
"Zeus"
(12 items)
 
Elite Preview
(6 items)
 
CPUMotherboardGraphicsRAM
Intel Xeon E3-1230v3 Gigabyte GA-Z97X-UD5H-BK MSI Gaming GTX 980 Kingston 32GB (4x8) 
Hard DriveHard DriveHard DriveHard Drive
Plextor PX-256M5S 256GB Samsung EVO 1TB Hitachi HDS721010CLA332 Hitachi HDS723020BLA642 
Hard DriveHard DriveHard DriveOptical Drive
Hitachi HDS723020BLA642 Hitachi HUA722010CLA330 WDC WD10EARS-00Z5B1 TSSTcorp CDDVDW SH-S223B 
CoolingCoolingOSMonitor
Phanteks PH-TC14PE with TY-140's Lamptron FCv5 (x2) Windows 8 Pro 64-bit Dell U2412M 
MonitorMonitorMonitorKeyboard
Dell U2412M Dell U2212HM Dell U2713HM Topre Realforce 87UB | Ducky DK9087 G2 Pro 
PowerCaseMouseMouse Pad
Corsair AX-750 Corsair Obsidian 650D Logitech G700 XTRAC Ripper XXL 
AudioAudioAudioAudio
Beyerdynamic DT-770 Pro 250ohm Schiit Bifrost DAC Schiit Asgard 2 HiVi Swan M50W 2.1 
CPUMotherboardRAMHard Drive
Intel Xeon E5-2620 Super Micro X9SRL-F-B 128GB 1333MHz LSI 9271-8i 
OSPowerCase
VMware ESXi 5.5 SeaSonic SS-400FL2 Fractal Define R3 
CPUMotherboardGraphicsRAM
Intel Core i5-3437U HP EliteBook Folio 9470m  Intel HD Graphics 4000  16GB DDR3 SDRAM 
Hard DriveOS
256GB SSD Windows 10 Insider Preview 
  hide details  
Reply
Ol' Sandy
(28 items)
 
"Zeus"
(12 items)
 
Elite Preview
(6 items)
 
CPUMotherboardGraphicsRAM
Intel Xeon E3-1230v3 Gigabyte GA-Z97X-UD5H-BK MSI Gaming GTX 980 Kingston 32GB (4x8) 
Hard DriveHard DriveHard DriveHard Drive
Plextor PX-256M5S 256GB Samsung EVO 1TB Hitachi HDS721010CLA332 Hitachi HDS723020BLA642 
Hard DriveHard DriveHard DriveOptical Drive
Hitachi HDS723020BLA642 Hitachi HUA722010CLA330 WDC WD10EARS-00Z5B1 TSSTcorp CDDVDW SH-S223B 
CoolingCoolingOSMonitor
Phanteks PH-TC14PE with TY-140's Lamptron FCv5 (x2) Windows 8 Pro 64-bit Dell U2412M 
MonitorMonitorMonitorKeyboard
Dell U2412M Dell U2212HM Dell U2713HM Topre Realforce 87UB | Ducky DK9087 G2 Pro 
PowerCaseMouseMouse Pad
Corsair AX-750 Corsair Obsidian 650D Logitech G700 XTRAC Ripper XXL 
AudioAudioAudioAudio
Beyerdynamic DT-770 Pro 250ohm Schiit Bifrost DAC Schiit Asgard 2 HiVi Swan M50W 2.1 
CPUMotherboardRAMHard Drive
Intel Xeon E5-2620 Super Micro X9SRL-F-B 128GB 1333MHz LSI 9271-8i 
OSPowerCase
VMware ESXi 5.5 SeaSonic SS-400FL2 Fractal Define R3 
CPUMotherboardGraphicsRAM
Intel Core i5-3437U HP EliteBook Folio 9470m  Intel HD Graphics 4000  16GB DDR3 SDRAM 
Hard DriveOS
256GB SSD Windows 10 Insider Preview 
  hide details  
Reply
post #14 of 30
Thread Starter 
so you can pseudo-store voids as a custom variable type definition?

so i would do something more like this?
Code:
#include <iostream>
using namespace std;

typedef void (*CODE)();

bool acceptable [255];
CODE hotkeycode [255];
acceptable[108] = true;
hotkeycode[108] = onHotkey;

void onHotkey() /// just an example
{
};

int main ()
{
    char hotkey;
    int x = 2;
    while (x == 2)
    {
        cout>>hotkey;
        if (acceptable[hotkey])
        {
            hotkeycode[hotkey]();
        }
        else
        {
            cout<<"Hotkey ERROR: You have pressed an invalid hotkey.";
        };
    };
    return 0;
}

Edited by GFreak45 - 1/5/12 at 11:49am
Yin
(13 items)
 
Yang
(14 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i7-2600K Sandy Bridge ASUS P8Z68-V PRO PowerColor AX6950 2GBD5-2DH G.SKILL Ripjaws X Series 8GB (2 x 4GB) 
Hard DriveCoolingOSMonitor
Crucial M4 CT128M4SSD2 2.5" SSD Hyper 212 EVO Windows 7 x64 Acer V243HAJbd Black 24" 2ms(GTG) Widescreen 
KeyboardPowerCaseMouse
Microsoft SideWinder X6 Black Keyboard Win USB ... SeaSonic X Series X650 Gold XCLIO Color I Black Steel / Plastic ATX Mid Tow... Microsoft Wireless Mobile Mouse 4000 
Mouse Pad
Black Tightened Leather Circle 
CPUMotherboardGraphicsRAM
Intel Core i7-3960X Extreme Edition Sandy Bridg... ASUS Maximus IV Extreme-Z LGA 1155 Intel Z68 Asus Mars II GeForce GTX 580 x2 (Fermi) 3GB Patriot Gamer 2 Series 16GB (2 x 8GB) 
Hard DriveOptical DriveCoolingOS
OCZ RevoDrive 3 X2 series RVD3X2-FHPX4 SSD HP DVD-ROM Drive Model 481045-B21 Hyper 212 Evo x4 Windows 7 
MonitorKeyboardPowerCase
NEC Display Solutions LCD2190UXp-BK Black 21.3" x2 RAZER Black USB Wired BlackWidow Ultimate Mecha... CISCO PWR-C45-1300ACV Catalyst 4500 Series 1300... Sentey Black Box Series BX2-4292 v2.1 / 4xUSB /... 
MouseAudio
Logitech G700 Black 13 Buttons Tilt Wheel USB R... BOSE Companion 2 Series 
  hide details  
Reply
Yin
(13 items)
 
Yang
(14 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i7-2600K Sandy Bridge ASUS P8Z68-V PRO PowerColor AX6950 2GBD5-2DH G.SKILL Ripjaws X Series 8GB (2 x 4GB) 
Hard DriveCoolingOSMonitor
Crucial M4 CT128M4SSD2 2.5" SSD Hyper 212 EVO Windows 7 x64 Acer V243HAJbd Black 24" 2ms(GTG) Widescreen 
KeyboardPowerCaseMouse
Microsoft SideWinder X6 Black Keyboard Win USB ... SeaSonic X Series X650 Gold XCLIO Color I Black Steel / Plastic ATX Mid Tow... Microsoft Wireless Mobile Mouse 4000 
Mouse Pad
Black Tightened Leather Circle 
CPUMotherboardGraphicsRAM
Intel Core i7-3960X Extreme Edition Sandy Bridg... ASUS Maximus IV Extreme-Z LGA 1155 Intel Z68 Asus Mars II GeForce GTX 580 x2 (Fermi) 3GB Patriot Gamer 2 Series 16GB (2 x 8GB) 
Hard DriveOptical DriveCoolingOS
OCZ RevoDrive 3 X2 series RVD3X2-FHPX4 SSD HP DVD-ROM Drive Model 481045-B21 Hyper 212 Evo x4 Windows 7 
MonitorKeyboardPowerCase
NEC Display Solutions LCD2190UXp-BK Black 21.3" x2 RAZER Black USB Wired BlackWidow Ultimate Mecha... CISCO PWR-C45-1300ACV Catalyst 4500 Series 1300... Sentey Black Box Series BX2-4292 v2.1 / 4xUSB /... 
MouseAudio
Logitech G700 Black 13 Buttons Tilt Wheel USB R... BOSE Companion 2 Series 
  hide details  
Reply
post #15 of 30
You can have a pointer to a function returning anything, doesn't have to be void.

But yes, that would work, assuming the array index you access has a function referenced in it, like the 108 smile.gif

Though I do not think an array of function pointers is actually the right solution to your problem. I would call the hot key function and pass it the actual key pressed as a parameter.
Ol' Sandy
(28 items)
 
"Zeus"
(12 items)
 
Elite Preview
(6 items)
 
CPUMotherboardGraphicsRAM
Intel Xeon E3-1230v3 Gigabyte GA-Z97X-UD5H-BK MSI Gaming GTX 980 Kingston 32GB (4x8) 
Hard DriveHard DriveHard DriveHard Drive
Plextor PX-256M5S 256GB Samsung EVO 1TB Hitachi HDS721010CLA332 Hitachi HDS723020BLA642 
Hard DriveHard DriveHard DriveOptical Drive
Hitachi HDS723020BLA642 Hitachi HUA722010CLA330 WDC WD10EARS-00Z5B1 TSSTcorp CDDVDW SH-S223B 
CoolingCoolingOSMonitor
Phanteks PH-TC14PE with TY-140's Lamptron FCv5 (x2) Windows 8 Pro 64-bit Dell U2412M 
MonitorMonitorMonitorKeyboard
Dell U2412M Dell U2212HM Dell U2713HM Topre Realforce 87UB | Ducky DK9087 G2 Pro 
PowerCaseMouseMouse Pad
Corsair AX-750 Corsair Obsidian 650D Logitech G700 XTRAC Ripper XXL 
AudioAudioAudioAudio
Beyerdynamic DT-770 Pro 250ohm Schiit Bifrost DAC Schiit Asgard 2 HiVi Swan M50W 2.1 
CPUMotherboardRAMHard Drive
Intel Xeon E5-2620 Super Micro X9SRL-F-B 128GB 1333MHz LSI 9271-8i 
OSPowerCase
VMware ESXi 5.5 SeaSonic SS-400FL2 Fractal Define R3 
CPUMotherboardGraphicsRAM
Intel Core i5-3437U HP EliteBook Folio 9470m  Intel HD Graphics 4000  16GB DDR3 SDRAM 
Hard DriveOS
256GB SSD Windows 10 Insider Preview 
  hide details  
Reply
Ol' Sandy
(28 items)
 
"Zeus"
(12 items)
 
Elite Preview
(6 items)
 
CPUMotherboardGraphicsRAM
Intel Xeon E3-1230v3 Gigabyte GA-Z97X-UD5H-BK MSI Gaming GTX 980 Kingston 32GB (4x8) 
Hard DriveHard DriveHard DriveHard Drive
Plextor PX-256M5S 256GB Samsung EVO 1TB Hitachi HDS721010CLA332 Hitachi HDS723020BLA642 
Hard DriveHard DriveHard DriveOptical Drive
Hitachi HDS723020BLA642 Hitachi HUA722010CLA330 WDC WD10EARS-00Z5B1 TSSTcorp CDDVDW SH-S223B 
CoolingCoolingOSMonitor
Phanteks PH-TC14PE with TY-140's Lamptron FCv5 (x2) Windows 8 Pro 64-bit Dell U2412M 
MonitorMonitorMonitorKeyboard
Dell U2412M Dell U2212HM Dell U2713HM Topre Realforce 87UB | Ducky DK9087 G2 Pro 
PowerCaseMouseMouse Pad
Corsair AX-750 Corsair Obsidian 650D Logitech G700 XTRAC Ripper XXL 
AudioAudioAudioAudio
Beyerdynamic DT-770 Pro 250ohm Schiit Bifrost DAC Schiit Asgard 2 HiVi Swan M50W 2.1 
CPUMotherboardRAMHard Drive
Intel Xeon E5-2620 Super Micro X9SRL-F-B 128GB 1333MHz LSI 9271-8i 
OSPowerCase
VMware ESXi 5.5 SeaSonic SS-400FL2 Fractal Define R3 
CPUMotherboardGraphicsRAM
Intel Core i5-3437U HP EliteBook Folio 9470m  Intel HD Graphics 4000  16GB DDR3 SDRAM 
Hard DriveOS
256GB SSD Windows 10 Insider Preview 
  hide details  
Reply
post #16 of 30
Thread Starter 
so something more like this?

but i wanted it to be a more dynamic code that i could easily change in game, however, i guess i could just use variables rather than statics in the conditions for my onHotkey function
Code:
#include <iostream>
using namespace std;

bool acceptable [255];
acceptable[108] = true;

void onHotkey(int i) /// just an example
{
    if (i == 108)
    {
        do stuff for hotkey 108
    }
};

int main ()
{
    char hotkey;
    int x = 2;
    while (x == 2)
    {
        cin>>hotkey;
        if (acceptable[hotkey])
        {
            onHotkey{hotkey};
        }
        else
        {
            cout<<"Hotkey ERROR: You have pressed an invalid hotkey."<<endl;
        };
    };
    return 0;
}

Edited by GFreak45 - 1/5/12 at 12:24pm
Yin
(13 items)
 
Yang
(14 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i7-2600K Sandy Bridge ASUS P8Z68-V PRO PowerColor AX6950 2GBD5-2DH G.SKILL Ripjaws X Series 8GB (2 x 4GB) 
Hard DriveCoolingOSMonitor
Crucial M4 CT128M4SSD2 2.5" SSD Hyper 212 EVO Windows 7 x64 Acer V243HAJbd Black 24" 2ms(GTG) Widescreen 
KeyboardPowerCaseMouse
Microsoft SideWinder X6 Black Keyboard Win USB ... SeaSonic X Series X650 Gold XCLIO Color I Black Steel / Plastic ATX Mid Tow... Microsoft Wireless Mobile Mouse 4000 
Mouse Pad
Black Tightened Leather Circle 
CPUMotherboardGraphicsRAM
Intel Core i7-3960X Extreme Edition Sandy Bridg... ASUS Maximus IV Extreme-Z LGA 1155 Intel Z68 Asus Mars II GeForce GTX 580 x2 (Fermi) 3GB Patriot Gamer 2 Series 16GB (2 x 8GB) 
Hard DriveOptical DriveCoolingOS
OCZ RevoDrive 3 X2 series RVD3X2-FHPX4 SSD HP DVD-ROM Drive Model 481045-B21 Hyper 212 Evo x4 Windows 7 
MonitorKeyboardPowerCase
NEC Display Solutions LCD2190UXp-BK Black 21.3" x2 RAZER Black USB Wired BlackWidow Ultimate Mecha... CISCO PWR-C45-1300ACV Catalyst 4500 Series 1300... Sentey Black Box Series BX2-4292 v2.1 / 4xUSB /... 
MouseAudio
Logitech G700 Black 13 Buttons Tilt Wheel USB R... BOSE Companion 2 Series 
  hide details  
Reply
Yin
(13 items)
 
Yang
(14 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i7-2600K Sandy Bridge ASUS P8Z68-V PRO PowerColor AX6950 2GBD5-2DH G.SKILL Ripjaws X Series 8GB (2 x 4GB) 
Hard DriveCoolingOSMonitor
Crucial M4 CT128M4SSD2 2.5" SSD Hyper 212 EVO Windows 7 x64 Acer V243HAJbd Black 24" 2ms(GTG) Widescreen 
KeyboardPowerCaseMouse
Microsoft SideWinder X6 Black Keyboard Win USB ... SeaSonic X Series X650 Gold XCLIO Color I Black Steel / Plastic ATX Mid Tow... Microsoft Wireless Mobile Mouse 4000 
Mouse Pad
Black Tightened Leather Circle 
CPUMotherboardGraphicsRAM
Intel Core i7-3960X Extreme Edition Sandy Bridg... ASUS Maximus IV Extreme-Z LGA 1155 Intel Z68 Asus Mars II GeForce GTX 580 x2 (Fermi) 3GB Patriot Gamer 2 Series 16GB (2 x 8GB) 
Hard DriveOptical DriveCoolingOS
OCZ RevoDrive 3 X2 series RVD3X2-FHPX4 SSD HP DVD-ROM Drive Model 481045-B21 Hyper 212 Evo x4 Windows 7 
MonitorKeyboardPowerCase
NEC Display Solutions LCD2190UXp-BK Black 21.3" x2 RAZER Black USB Wired BlackWidow Ultimate Mecha... CISCO PWR-C45-1300ACV Catalyst 4500 Series 1300... Sentey Black Box Series BX2-4292 v2.1 / 4xUSB /... 
MouseAudio
Logitech G700 Black 13 Buttons Tilt Wheel USB R... BOSE Companion 2 Series 
  hide details  
Reply
post #17 of 30
Hmm... pointers to functions might be better in that case.... I'd still move the checks to a single function though and then check if we have a function defined for that key (i.e. not equal to NULL) and if so then call it from there.
Ol' Sandy
(28 items)
 
"Zeus"
(12 items)
 
Elite Preview
(6 items)
 
CPUMotherboardGraphicsRAM
Intel Xeon E3-1230v3 Gigabyte GA-Z97X-UD5H-BK MSI Gaming GTX 980 Kingston 32GB (4x8) 
Hard DriveHard DriveHard DriveHard Drive
Plextor PX-256M5S 256GB Samsung EVO 1TB Hitachi HDS721010CLA332 Hitachi HDS723020BLA642 
Hard DriveHard DriveHard DriveOptical Drive
Hitachi HDS723020BLA642 Hitachi HUA722010CLA330 WDC WD10EARS-00Z5B1 TSSTcorp CDDVDW SH-S223B 
CoolingCoolingOSMonitor
Phanteks PH-TC14PE with TY-140's Lamptron FCv5 (x2) Windows 8 Pro 64-bit Dell U2412M 
MonitorMonitorMonitorKeyboard
Dell U2412M Dell U2212HM Dell U2713HM Topre Realforce 87UB | Ducky DK9087 G2 Pro 
PowerCaseMouseMouse Pad
Corsair AX-750 Corsair Obsidian 650D Logitech G700 XTRAC Ripper XXL 
AudioAudioAudioAudio
Beyerdynamic DT-770 Pro 250ohm Schiit Bifrost DAC Schiit Asgard 2 HiVi Swan M50W 2.1 
CPUMotherboardRAMHard Drive
Intel Xeon E5-2620 Super Micro X9SRL-F-B 128GB 1333MHz LSI 9271-8i 
OSPowerCase
VMware ESXi 5.5 SeaSonic SS-400FL2 Fractal Define R3 
CPUMotherboardGraphicsRAM
Intel Core i5-3437U HP EliteBook Folio 9470m  Intel HD Graphics 4000  16GB DDR3 SDRAM 
Hard DriveOS
256GB SSD Windows 10 Insider Preview 
  hide details  
Reply
Ol' Sandy
(28 items)
 
"Zeus"
(12 items)
 
Elite Preview
(6 items)
 
CPUMotherboardGraphicsRAM
Intel Xeon E3-1230v3 Gigabyte GA-Z97X-UD5H-BK MSI Gaming GTX 980 Kingston 32GB (4x8) 
Hard DriveHard DriveHard DriveHard Drive
Plextor PX-256M5S 256GB Samsung EVO 1TB Hitachi HDS721010CLA332 Hitachi HDS723020BLA642 
Hard DriveHard DriveHard DriveOptical Drive
Hitachi HDS723020BLA642 Hitachi HUA722010CLA330 WDC WD10EARS-00Z5B1 TSSTcorp CDDVDW SH-S223B 
CoolingCoolingOSMonitor
Phanteks PH-TC14PE with TY-140's Lamptron FCv5 (x2) Windows 8 Pro 64-bit Dell U2412M 
MonitorMonitorMonitorKeyboard
Dell U2412M Dell U2212HM Dell U2713HM Topre Realforce 87UB | Ducky DK9087 G2 Pro 
PowerCaseMouseMouse Pad
Corsair AX-750 Corsair Obsidian 650D Logitech G700 XTRAC Ripper XXL 
AudioAudioAudioAudio
Beyerdynamic DT-770 Pro 250ohm Schiit Bifrost DAC Schiit Asgard 2 HiVi Swan M50W 2.1 
CPUMotherboardRAMHard Drive
Intel Xeon E5-2620 Super Micro X9SRL-F-B 128GB 1333MHz LSI 9271-8i 
OSPowerCase
VMware ESXi 5.5 SeaSonic SS-400FL2 Fractal Define R3 
CPUMotherboardGraphicsRAM
Intel Core i5-3437U HP EliteBook Folio 9470m  Intel HD Graphics 4000  16GB DDR3 SDRAM 
Hard DriveOS
256GB SSD Windows 10 Insider Preview 
  hide details  
Reply
post #18 of 30
Thread Starter 
oh well it was just a practice code

im very excited about cin/cout and #include
in the previous language i used there was no aloud user input apart from a chat string and it was terrible at detecting that

so is there a list of the integer codes for each key? i have searched but cant find one... that makes me a sad panda...
Yin
(13 items)
 
Yang
(14 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i7-2600K Sandy Bridge ASUS P8Z68-V PRO PowerColor AX6950 2GBD5-2DH G.SKILL Ripjaws X Series 8GB (2 x 4GB) 
Hard DriveCoolingOSMonitor
Crucial M4 CT128M4SSD2 2.5" SSD Hyper 212 EVO Windows 7 x64 Acer V243HAJbd Black 24" 2ms(GTG) Widescreen 
KeyboardPowerCaseMouse
Microsoft SideWinder X6 Black Keyboard Win USB ... SeaSonic X Series X650 Gold XCLIO Color I Black Steel / Plastic ATX Mid Tow... Microsoft Wireless Mobile Mouse 4000 
Mouse Pad
Black Tightened Leather Circle 
CPUMotherboardGraphicsRAM
Intel Core i7-3960X Extreme Edition Sandy Bridg... ASUS Maximus IV Extreme-Z LGA 1155 Intel Z68 Asus Mars II GeForce GTX 580 x2 (Fermi) 3GB Patriot Gamer 2 Series 16GB (2 x 8GB) 
Hard DriveOptical DriveCoolingOS
OCZ RevoDrive 3 X2 series RVD3X2-FHPX4 SSD HP DVD-ROM Drive Model 481045-B21 Hyper 212 Evo x4 Windows 7 
MonitorKeyboardPowerCase
NEC Display Solutions LCD2190UXp-BK Black 21.3" x2 RAZER Black USB Wired BlackWidow Ultimate Mecha... CISCO PWR-C45-1300ACV Catalyst 4500 Series 1300... Sentey Black Box Series BX2-4292 v2.1 / 4xUSB /... 
MouseAudio
Logitech G700 Black 13 Buttons Tilt Wheel USB R... BOSE Companion 2 Series 
  hide details  
Reply
Yin
(13 items)
 
Yang
(14 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i7-2600K Sandy Bridge ASUS P8Z68-V PRO PowerColor AX6950 2GBD5-2DH G.SKILL Ripjaws X Series 8GB (2 x 4GB) 
Hard DriveCoolingOSMonitor
Crucial M4 CT128M4SSD2 2.5" SSD Hyper 212 EVO Windows 7 x64 Acer V243HAJbd Black 24" 2ms(GTG) Widescreen 
KeyboardPowerCaseMouse
Microsoft SideWinder X6 Black Keyboard Win USB ... SeaSonic X Series X650 Gold XCLIO Color I Black Steel / Plastic ATX Mid Tow... Microsoft Wireless Mobile Mouse 4000 
Mouse Pad
Black Tightened Leather Circle 
CPUMotherboardGraphicsRAM
Intel Core i7-3960X Extreme Edition Sandy Bridg... ASUS Maximus IV Extreme-Z LGA 1155 Intel Z68 Asus Mars II GeForce GTX 580 x2 (Fermi) 3GB Patriot Gamer 2 Series 16GB (2 x 8GB) 
Hard DriveOptical DriveCoolingOS
OCZ RevoDrive 3 X2 series RVD3X2-FHPX4 SSD HP DVD-ROM Drive Model 481045-B21 Hyper 212 Evo x4 Windows 7 
MonitorKeyboardPowerCase
NEC Display Solutions LCD2190UXp-BK Black 21.3" x2 RAZER Black USB Wired BlackWidow Ultimate Mecha... CISCO PWR-C45-1300ACV Catalyst 4500 Series 1300... Sentey Black Box Series BX2-4292 v2.1 / 4xUSB /... 
MouseAudio
Logitech G700 Black 13 Buttons Tilt Wheel USB R... BOSE Companion 2 Series 
  hide details  
Reply
post #19 of 30
Check out the standard ASCII codes

http://en.wikipedia.org/wiki/ASCII
Ol' Sandy
(28 items)
 
"Zeus"
(12 items)
 
Elite Preview
(6 items)
 
CPUMotherboardGraphicsRAM
Intel Xeon E3-1230v3 Gigabyte GA-Z97X-UD5H-BK MSI Gaming GTX 980 Kingston 32GB (4x8) 
Hard DriveHard DriveHard DriveHard Drive
Plextor PX-256M5S 256GB Samsung EVO 1TB Hitachi HDS721010CLA332 Hitachi HDS723020BLA642 
Hard DriveHard DriveHard DriveOptical Drive
Hitachi HDS723020BLA642 Hitachi HUA722010CLA330 WDC WD10EARS-00Z5B1 TSSTcorp CDDVDW SH-S223B 
CoolingCoolingOSMonitor
Phanteks PH-TC14PE with TY-140's Lamptron FCv5 (x2) Windows 8 Pro 64-bit Dell U2412M 
MonitorMonitorMonitorKeyboard
Dell U2412M Dell U2212HM Dell U2713HM Topre Realforce 87UB | Ducky DK9087 G2 Pro 
PowerCaseMouseMouse Pad
Corsair AX-750 Corsair Obsidian 650D Logitech G700 XTRAC Ripper XXL 
AudioAudioAudioAudio
Beyerdynamic DT-770 Pro 250ohm Schiit Bifrost DAC Schiit Asgard 2 HiVi Swan M50W 2.1 
CPUMotherboardRAMHard Drive
Intel Xeon E5-2620 Super Micro X9SRL-F-B 128GB 1333MHz LSI 9271-8i 
OSPowerCase
VMware ESXi 5.5 SeaSonic SS-400FL2 Fractal Define R3 
CPUMotherboardGraphicsRAM
Intel Core i5-3437U HP EliteBook Folio 9470m  Intel HD Graphics 4000  16GB DDR3 SDRAM 
Hard DriveOS
256GB SSD Windows 10 Insider Preview 
  hide details  
Reply
Ol' Sandy
(28 items)
 
"Zeus"
(12 items)
 
Elite Preview
(6 items)
 
CPUMotherboardGraphicsRAM
Intel Xeon E3-1230v3 Gigabyte GA-Z97X-UD5H-BK MSI Gaming GTX 980 Kingston 32GB (4x8) 
Hard DriveHard DriveHard DriveHard Drive
Plextor PX-256M5S 256GB Samsung EVO 1TB Hitachi HDS721010CLA332 Hitachi HDS723020BLA642 
Hard DriveHard DriveHard DriveOptical Drive
Hitachi HDS723020BLA642 Hitachi HUA722010CLA330 WDC WD10EARS-00Z5B1 TSSTcorp CDDVDW SH-S223B 
CoolingCoolingOSMonitor
Phanteks PH-TC14PE with TY-140's Lamptron FCv5 (x2) Windows 8 Pro 64-bit Dell U2412M 
MonitorMonitorMonitorKeyboard
Dell U2412M Dell U2212HM Dell U2713HM Topre Realforce 87UB | Ducky DK9087 G2 Pro 
PowerCaseMouseMouse Pad
Corsair AX-750 Corsair Obsidian 650D Logitech G700 XTRAC Ripper XXL 
AudioAudioAudioAudio
Beyerdynamic DT-770 Pro 250ohm Schiit Bifrost DAC Schiit Asgard 2 HiVi Swan M50W 2.1 
CPUMotherboardRAMHard Drive
Intel Xeon E5-2620 Super Micro X9SRL-F-B 128GB 1333MHz LSI 9271-8i 
OSPowerCase
VMware ESXi 5.5 SeaSonic SS-400FL2 Fractal Define R3 
CPUMotherboardGraphicsRAM
Intel Core i5-3437U HP EliteBook Folio 9470m  Intel HD Graphics 4000  16GB DDR3 SDRAM 
Hard DriveOS
256GB SSD Windows 10 Insider Preview 
  hide details  
Reply
post #20 of 30
Thread Starter 
how about #include is that just basically a rewording of this:
Code:
library Example requires AIDS, optional T32
    library functions and code
endlibrary
Note: AIDS is Auto indexing and data storage, an indexing library for vJass, and T32 is a timer library for vJass, optional means the library can still compile without access to the T32 library... just a quick explanation as it is a language not supported here
Yin
(13 items)
 
Yang
(14 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i7-2600K Sandy Bridge ASUS P8Z68-V PRO PowerColor AX6950 2GBD5-2DH G.SKILL Ripjaws X Series 8GB (2 x 4GB) 
Hard DriveCoolingOSMonitor
Crucial M4 CT128M4SSD2 2.5" SSD Hyper 212 EVO Windows 7 x64 Acer V243HAJbd Black 24" 2ms(GTG) Widescreen 
KeyboardPowerCaseMouse
Microsoft SideWinder X6 Black Keyboard Win USB ... SeaSonic X Series X650 Gold XCLIO Color I Black Steel / Plastic ATX Mid Tow... Microsoft Wireless Mobile Mouse 4000 
Mouse Pad
Black Tightened Leather Circle 
CPUMotherboardGraphicsRAM
Intel Core i7-3960X Extreme Edition Sandy Bridg... ASUS Maximus IV Extreme-Z LGA 1155 Intel Z68 Asus Mars II GeForce GTX 580 x2 (Fermi) 3GB Patriot Gamer 2 Series 16GB (2 x 8GB) 
Hard DriveOptical DriveCoolingOS
OCZ RevoDrive 3 X2 series RVD3X2-FHPX4 SSD HP DVD-ROM Drive Model 481045-B21 Hyper 212 Evo x4 Windows 7 
MonitorKeyboardPowerCase
NEC Display Solutions LCD2190UXp-BK Black 21.3" x2 RAZER Black USB Wired BlackWidow Ultimate Mecha... CISCO PWR-C45-1300ACV Catalyst 4500 Series 1300... Sentey Black Box Series BX2-4292 v2.1 / 4xUSB /... 
MouseAudio
Logitech G700 Black 13 Buttons Tilt Wheel USB R... BOSE Companion 2 Series 
  hide details  
Reply
Yin
(13 items)
 
Yang
(14 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i7-2600K Sandy Bridge ASUS P8Z68-V PRO PowerColor AX6950 2GBD5-2DH G.SKILL Ripjaws X Series 8GB (2 x 4GB) 
Hard DriveCoolingOSMonitor
Crucial M4 CT128M4SSD2 2.5" SSD Hyper 212 EVO Windows 7 x64 Acer V243HAJbd Black 24" 2ms(GTG) Widescreen 
KeyboardPowerCaseMouse
Microsoft SideWinder X6 Black Keyboard Win USB ... SeaSonic X Series X650 Gold XCLIO Color I Black Steel / Plastic ATX Mid Tow... Microsoft Wireless Mobile Mouse 4000 
Mouse Pad
Black Tightened Leather Circle 
CPUMotherboardGraphicsRAM
Intel Core i7-3960X Extreme Edition Sandy Bridg... ASUS Maximus IV Extreme-Z LGA 1155 Intel Z68 Asus Mars II GeForce GTX 580 x2 (Fermi) 3GB Patriot Gamer 2 Series 16GB (2 x 8GB) 
Hard DriveOptical DriveCoolingOS
OCZ RevoDrive 3 X2 series RVD3X2-FHPX4 SSD HP DVD-ROM Drive Model 481045-B21 Hyper 212 Evo x4 Windows 7 
MonitorKeyboardPowerCase
NEC Display Solutions LCD2190UXp-BK Black 21.3" x2 RAZER Black USB Wired BlackWidow Ultimate Mecha... CISCO PWR-C45-1300ACV Catalyst 4500 Series 1300... Sentey Black Box Series BX2-4292 v2.1 / 4xUSB /... 
MouseAudio
Logitech G700 Black 13 Buttons Tilt Wheel USB R... BOSE Companion 2 Series 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Application Programming
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Application Programming › vJass -> C++ (Differences when switching languages), +rep for help (if i can, first post here)