No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
- Interests
- Have been studying (and not just playing) the bass guitar for the last 6 and a half years, started programming…
- PC Specs
- OS: Windows 7 Ultimate PC: Intel Core2Quad with 4G Ram, Asus motherboard etc... not bad!
23 Posted Topics
Hi, I've been using C++ for quite a while but recently I discovered this peculiar behaviour. The following code works as expected: #define TWO 2; int nVal = 3 + TWO; cout<<nVal<<endl; // output is 5 ...if on the other hand I place the literal integer after the '+' in … | |
Hi, I've just learned that Java's 'protected' access specifier has a different effect than that in C++. So is there a way to make a member of a base class visible to its inheritors but not globally? Dean | |
Hi, I'm doing a project with java using the console and I'd like to perform some actions (such as printing to the screen etc) while waiting for input. I was planning to accomplish this by using unbuffered input, by polling the keyboard and performing other actions alternatively, but apparently retrieving … | |
Hi, When I access the property pages of a project with Visual C++ 2010, in the 'Configuration Properties | VC++ Directories' sub-tab there's an 'Include Directories' property. Under 'Configuration Properties | C/C++ | General' there's a property 'Additional Include Directories'. Is there a difference between the 2? What are the … | |
Hi, If I'm not mistaken, the following code will allocate 5 integer elements from memory to 'ptr': [CODE] int *ptr; ptr = new int[5]; [/CODE] If after this code I enter the following: [CODE] ptr = new int[7]; [/CODE] will the original 5 elements be overwritten or deallocated? Or will … | |
Hi, Can private static data members of a class be accessed through non-static methods of that class? I'm asking this (dumb) question because on a C++ book I've read that a class's static data members can only be accessed through a static function, but when I tried doing it with … | |
Hi all, Is it possible to define a preprocessor constant using another constant and a string in the declaration, like this: [CODE] #define MAIN_PATH = "C:\\My Documents\\" #define SUB_DIR = MAIN_PATH + "MyFolder\\" [/CODE] I'm using VC++ 2010 Express... Thanks, Dean | |
Re: Hi, I'm a beginner and I've never created a project template myself but earlier today I ran into this link: [URL="http://msdn.microsoft.com/en-US/library/xkh1wxd8(v=VS.80).aspx"]How to: Create Project Templates[/URL] Hope it helps... Dean | |
Hi, I've recently downloaded MSVC++ 10.0 Express from the Microsoft website, and I can't seem to find a new project template for 'setup and deployment'. Can I download it individually from somewhere? Thanks, Dean | |
Hi, My school's computers (WinXP Pro SP3) have a strict group restriction policy which doesn't allow a user to run .exe and .bat files (unless they were installed by the system admin). I need to know if there's any way I can bypass this restriction and be able to execute … | |
Hi, I've just started using MSVC++ 10.0 express edition and I'm also a relative beginner in c++, and I have a few questions about the IDE. On the standard taskbar I've noticed a small drop down list containing the words Debug, Release and Configuration Manager. It is set to Debug … | |
Hi, I've rececntly connected my pc's speaker output to a guitar amp which takes in a mono input, so the amp is only taking in the left signal, ignoring completely the right signal. Does anyone know how I can mix both signals into one from windows? tnks, dean | |
Hi all, I've built a Queue class which basically uses dynamic memory allocation to make an array grow with every new element inserted. It compiles and works perfectly under dev c++, but when I included the class in a VC++ 10 Express project and instantiated an object from it, the … | |
Hi, I have a number of computers at home connected through a WLAN but 2 of them are also connected between them with a crossover RJ45 cable (WinXP and the other Win7). I have a ton of files I want to copy from the XP computer to the Win7 computer … | |
Hi, Call me stupid but I've managed to change the security settings of the C: drive on my PC in a way which denies access to this drive from all users, including me (the admin) and now I cannot access any data OR programs on this drive : these include … | |
Hi everyone, I'm using an old, banged-up, Asus A6000 notebook which I want to format and then re-install WinXP on (I only have 384MB RAM)... The thing is, a few days ago my brother smashed my laptop on the floor and although, surprisingly, it still works, its TFT screen is … | |
Hi, I've just started using MS VC++ 2010 express and I have a problem which when using Dev C++ I've never had... VC++ doesn't allow me to allocate elements for an array using a variable as a subscript, like this : [CODE] int maxElements = 10; char myArray[maxElements]; [/CODE] It … | |
Hi, can anyone tell me how to access a specific memory location in C++ (I use Dev-C++ 4.9.9.2) without the OS giving me an error and stopping the execution of my prog? I've tried the following code on both WinXP and Win98, but they both gave me an error : … | |
Hi, Are 2D arrays positioned in memory the same way as normal arrays? ex.: char names[2][5] = {"Dean", "Viky"}; If 'names' is memory location 3000, are the letters necessarily stored like this? 3000 = 'D' 3001 = 'e' 3002 = 'a' 3003 = 'n' 3004 = '\0' 3005 = 'V' … | |
Does anyone know how to set the character background color? I tried using system("color ") etc. but this sets the background color of the whole screen... What I need is the c++ equivalent of the 'textbackground()' function used in pascal.... thanks | |
Re: You need something like this: (see the file attached...) there you have two examples of loops - do while loop - for do loop If you need anyhelp, just ask.... | |
Hi I've just started out in c++, can anyone tell me how to use pointers which hold addresses of objects ? How do you access the object fields from this type of pointer, especially strings (array of chars)... I'm using a Dev c++ 4.9.9.2 compiler.... | |
Hi, this is Dean from Malta I'm 16 (at the time of typing, duh...) and I began to program at the age of 10, when I began experimenting with QBasic (which by the way, my father still used at the time to program PABXs for Connect!)... since then I've proudly … |
The End.