Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~3K People Reached
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!
Member Avatar for deanus

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 …

Member Avatar for deanus
0
105
Member Avatar for deanus

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

Member Avatar for deanus
0
104
Member Avatar for deanus

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 …

Member Avatar for JamesCherrill
0
83
Member Avatar for deanus

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 …

Member Avatar for Ancient Dragon
0
99
Member Avatar for deanus

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 …

Member Avatar for ravenous
0
133
Member Avatar for deanus

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 …

Member Avatar for deanus
0
172
Member Avatar for deanus

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

Member Avatar for Banfa
0
203
Member Avatar for ChaseRLewis

Hello, When I was getting the basics of C++ these forums were very helpful so maybe I can find some help on this subject. I want to organize a template project (think there is a better name for this) so when I create a new project in Visual Studio 2010 …

Member Avatar for deanus
0
131
Member Avatar for deanus

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

Member Avatar for Ancient Dragon
0
94
Member Avatar for deanus

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 …

Member Avatar for crunchie
0
87
Member Avatar for deanus

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 …

Member Avatar for chiwawa10
0
138
Member Avatar for deanus

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

Member Avatar for deanus
0
78
Member Avatar for deanus

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 …

Member Avatar for deanus
0
140
Member Avatar for deanus

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 …

Member Avatar for zash20
0
67
Member Avatar for deanus

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 …

Member Avatar for pnky_14
0
121
Member Avatar for deanus

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 …

Member Avatar for deanus
0
78
Member Avatar for deanus

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 …

Member Avatar for alaukik
0
86
Member Avatar for deanus

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 : …

Member Avatar for deanus
0
217
Member Avatar for deanus

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' …

Member Avatar for deanus
0
144
Member Avatar for deanus

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

Member Avatar for deanus
0
66
Member Avatar for manutd4life

here's my question: write a program that asks the user to type the value of N and writes this picture : N=1 * N=2 ** * N=3 *** ** * any help? tips how can i start?? thanks

Member Avatar for deanus
0
83
Member Avatar for deanus

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....

Member Avatar for deanus
0
106
Member Avatar for deanus

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 …

0
42