Search found 4 matches

by Nguyen Viet Bang
Wed Feb 18, 2004 11:52 am
Forum: Volume 8 (800-899)
Topic: 811 - The Fortified Forest
Replies: 12
Views: 7025

811 - Got Runtime error SIGSEGV

Really disappointed and got stuck on this problem... I'm almost newbie here I got Runtime error SIGSEGV . I've submitted a lot number of times , try to put many traps for array bounds checking . Also write a program to generate large data test... Handle with real numbers very carefully But my prog a...
by Nguyen Viet Bang
Fri Jan 16, 2004 7:15 pm
Forum: C++
Topic: Weird problem with debugger in MS visual C++
Replies: 11
Views: 3998

Thnx for ur reply , Claudio... Well , actually I have noticed it before and it is also one of my efforts to fix the problem . To my knowledge , "char static * tem" means that "tem" is a static pointer points to the string of characters , meanwhile , "static char * tem" refers to a pointer (not stati...
by Nguyen Viet Bang
Fri Jan 16, 2004 3:12 pm
Forum: C++
Topic: Weird problem with debugger in MS visual C++
Replies: 11
Views: 3998

Weird problem with debugger in MS visual C++

Hi all , I've just moved from Pascal to C++ . I face really weird problem with the debugger in Visual Studio C++ 6.0 . belose is my source : [cpp] #include<iostream> #include<string> using namespace std ; char * nextToken(char *b){ char static *tem ; if (b==NULL) { if (tem == NULL) return NULL ; cha...
by Nguyen Viet Bang
Tue Nov 04, 2003 8:28 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 182738

Get stuck with Java ! Is the sample code error ?

Hi I'm new to Java and I'm really dissappointed with my unsuccess on problem 100 3n+1 . I believe there must be an bug in the input code : Note the third last line [java]static String ReadLn (int maxLg) // utility function to read from stdin { byte lin[] = new byte [maxLg]; int lg = 0, car = -1; Str...

Go to advanced search