Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by kai2005

  1. kai2005

    how large can be the allocation in stack?

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

    how large can be the allocation in stack?

    Salem, thanks for your answer. I have not used VC, but just compile my code with gcc. How can I deal with this problem?
  3. kai2005

    how large can be the allocation in stack?

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

    how to write a java program, which can excute a jar file

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

    how to write a java program, which can excute a jar file

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

    how to write a java program, which can excute a jar file

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

    problem with keyword const

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

    How is this possible?

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

    How is this possible?

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

    How to program web-browser?

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

    Require code to shuffle a list

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

    Require code to shuffle a list

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

    Require code to shuffle a list

    [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 *...
  14. kai2005

    Require code to shuffle a list

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

    How to program web-browser?

    Hi all, I want try to write a web-browser, like IE or firefox. But how? Can someone speak something about this? I can C/C++ and java.

Part and Inventory Search

Back
Top