February 11th, 2011 04:51 AM
Thank you very much for the replies.
February 11th, 2011 02:09 AM
I am learning array in C++. This code compiles but when I run the program, it gives some error. Is there anything wrong in this code?
#include <iostream>
using namespace std;
int main()
{...
February 9th, 2011 11:34 PM
I am learning C++. I have MS Visual C++ 6.0 installed in my MS Windows XP desktop computer. When I try to compile, it says "Compiling......" but, never ends. Similarly, when I click to build after...
February 9th, 2011 09:19 AM
Hello JohnW,
These are the local variables. Could you please give me an example? How to use heap?
My array is exactly A[100000][3]. So, it comes (100000 * 3 * 8)/(1024*1024) = 2.28MB.
February 9th, 2011 08:26 AM
Hi GCDEF,
How can I solve it.
Any quick and easy solution will be appreciated.
I am using MS Visual c++ 6.0
February 9th, 2011 08:19 AM
Sorry to ask simple question, but, even after googling I couldn't solve my problem. Hope you guys can help me.
const int i=100000;
const int j=32;
__int64 A[i][j];
...
It compiles but...
February 9th, 2011 03:22 AM
Hi alanjhd08,
Thank you for your help.
I did the same as you and hypheni said.
I declared "const int someData = 6" in header1.h
I declared "extern const int someData in main.cpp
The error is...
February 9th, 2011 02:35 AM
Hi hypheni,
Thanks for your quick reply.
Do I need to declare "external const int" instead of const int in header1.h?
Do "external const int" and "const int" same for header1.h?
February 9th, 2011 02:20 AM
I have following four files:
1. A hash - header1.h
2. A main header file - header2.h
3. A functions file - functions.cpp and
4. A main file - main.cpp.
header1.h and header2.h are included...
September 27th, 2010 08:18 PM
Hi Lindley and jnmacd,
My apology for the mistake in my post (and reply as well). Thank you for the reply.
I tried to get the result like this:
(w, i)
0, 0
1, 0
2, 0
..
..
16,0...
September 27th, 2010 11:14 AM
Hi Lindley,
Thank you for reply. I used pointer to reset the value to zero.
I want to print like :
0, 0
1, 0
2, 0
..
..
16,0
September 27th, 2010 11:08 AM
I used the pointer to reset the w's value to zero.
September 27th, 2010 10:51 AM
Hi all, I am VERY NEW in C++ and programming. I just wanna print w and i, such that when w is equal to 16, i increases by 1 and w restarts from 0 until w reaches 1024. But the result doesn't come as...