I have just made a test, till 721*722*4 Byte is still ok. above this will get problem. And 721*721*4 = 1.98MB That mean, the default max stack size for gcc is 2MB.
I don't know how can I make some changement by setting of stack size.
the code like this:
int main()
{
int intArray[10000][10000]; //I got no problem,
//but I got problem in run time
//now I think the space demand
//is too large.
//now the question...
Hello sedj,
Hello stefanwagner,
thank you all for the reply.
It do work now.
The jar file will be actived after the statements
Process p = Runtime.getRuntime().exec("java -jar myjar.jar MyMainClass");
p.waitFor(); executed. But after I close the jar file, I can not direct back to the last...
Hello sedj,
I am not sure, whether you have understand me.
You should know, I have finished Programm 1, and then was told, that in Programm 1 will an another Programm be integrated.
Now I have two Choices. One is rewrite Programm1 with using the source code of Programm 2. Another Choice is...
hi all,
I have finished a java program, now someone give me an executable jar file with source code, and want integrate this jar file in my java program.
My Idea is I write a JDialog Object as ProgramChooser, which has some some radio button. When someone choosed an item and clicke OK button...
please take a look of this program, how can this be explained?
#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
const int i=0;
int * j=(int*)&i;
const int k=0;
int * u=(int*)&k;
*j+=1;
*u+=1;
cout<<i<<" "<<*j<<endl;
cout<<&i<<" "<<j<<endl...
right, main() is a global function, because you need a stage for every player.
But when you think in OOP programming, the important thing is to create a Model, which simulated the problem, which you want solve, and this Model is made up of the different Objects.
When you understand what this...
When you speak from global function, then your program is not pure OOP program. In OOP every function was writen in a class, it can be member function or friend function or static function, but it is meaningless to define a global function. Usually in C you will write many subfunctions. But in...
hello cpjust,
I have windowsprogramming experience with pure win-api, without using MFC, because I don't like MFC. And I can also Java-GUI programming with using Java Swing. But I still do not know how to begin to program web-browser.
I think a web browser should be cross-platteform, like firefox.
my personal view-aspect: I know this is a C++ forum, so it is better to post code in C++. I will try to do so later. And I think, a programer should not think something in such Language, but just in logic, and the language is just a medien, to implement the logic process, to simulate the real...
Sorry, something wrong typed, so do it again.
/**
* this is a member function in Class DLList
* with function clone() you will have an
* another DLList object, which have the same
* elements as the original
* when the originale DLList is empty, then
* the cloned DLList must also empty...
[code]
/**
* this is a member function in Class DLList
* with function clone() you will have an
* another DLList object, which have the same
* elements as the original
* when the originale DLList is empty, then
* the cloned DLList must also empty, then we
* need not do anything
*...
Hello raydona,
I have developed a class in Java with name DLList, which means, it is a double linked List, and it is also a circled List. In this Class I have also implemented the function for shuffle all elements in list. When you want the source code I can send you, please tell me your email...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.