Type: Posts; User: atee
Search took 0.01 seconds.
April 22nd, 2014, 10:00 AM
Then, what is the difference between declaring a variable as a local variable in the function and declaring it as a vector/container?
Even, a local variable has block scope - block being the...
April 22nd, 2014, 02:13 AM
It doesn't allow me to debug.
When I debug it says debug assertion failed with a message stating "vector subsript out of range"
I have wrapped the code below.
Thanks for your help
April 22nd, 2014, 02:00 AM
Thanks a lot. Please correct me if wrong: The definition of a global variable is the one which remains active throughout the program. An arary declared with evctor remians active throughout the...
April 22nd, 2014, 12:59 AM
IS the evctor a global variable and remains active throughout the program?
April 22nd, 2014, 12:57 AM
I have the follwoing code. however, when I debug it gives an error saying" vector subscript out of range"
Can anyone pelase help?
//Vector based multi-dimensional arrays
//Vectors are a STL...
April 22nd, 2014, 12:03 AM
I have been reading on Vectors in C++ and understand that vectors are a STL container that allow you to store pretty much anything in them. When used correctly they can be very powerful containers.
April 21st, 2014, 08:45 AM
Let us say I have dynamically allocated memory as below:
double** pvalue = NULL; // Pointer initialized with null
pvalue = new double ; // Allocate memory for a 3x4 array
April 21st, 2014, 08:41 AM
Yes, I confirmed that I was right using the debugger
I use Visual Studio 2008.How can I check the compiler version?Sorry for asking this question..
April 21st, 2014, 04:28 AM
Thanks a lot.
That means when I craete object of a derived class (in my code that derived class being Rectangle), the constructor of the derived class is called followed by the constructor of the...
April 16th, 2014, 08:04 AM
I was reading the following in order to understand polymorphism. You can see that the function "Shape" is of the same name as that of the class.
What is the significance here?
April 16th, 2014, 07:57 AM
April 16th, 2014, 06:57 AM
I'm just beginning to code in C++.
I created an empty project in Visual Studi and then created a source file (cpp file) and then added the follwoign bit of code
April 16th, 2014, 04:01 AM
Thanks a lot.
I went through the hyperlink for Accelerated C++.
Did you use the sampel source code? How useful did you find it..just confirming before placing the order online..
April 16th, 2014, 01:54 AM
Thanks a lot everyone. The problem is solved. The smaple code was very useful.
April 16th, 2014, 01:53 AM
I'm beginning to learn C++ (I have a good experience of several years in procedure oriented programming languages like Fortran , C ).
Can anyone direct me to some good sample code (simple...
April 15th, 2014, 10:17 AM
Thanks a lot, this helps.
I used the example code, it compiles without errors, when I debug, it asks for the executable I should I be using.
Can you please help and advisewhat exe should I be...
April 12th, 2014, 03:31 AM
I'm having a problem linking in C++
I have my cpp file named as : XYZ
I have another header file and a corresponding cpp file which Iím trying to link.
which I have added in the C/ C++ (General)...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.