efficiency of stack memory allocation10104 (3/26/2009 3:16:47 AM) comp.lang.c++.moderated // some code here { int a; // beginning of block goto next; int b; } next: // and some code here also...:) In above code, how much size of stack are allocated at the beginning of the block? 4 or... hongseok
breakpoint related question3120 (3/19/2009 1:48:10 PM) comp.lang.c++.moderated #include using namespace std; int main() { vector vec; vec.push_back(1); vec.push_back(2); vec.push_back(3); vector::const_iterator itr, itrend; itr = vec.begin(); itrend = vec.end(); for (; itr !=... hongseok
regular expression question...229 (5/26/2008 8:41:47 AM) comp.lang.ruby I'd like to make sort of a comment remover for C++. If there's a source file like bellow... // 1234 12//34 ///1234 12///34 and my code is... file = open("source.txt", "r") file.each_line {|line| if line... hongseok
How can I get value of output parameter using DBI library025 (5/22/2008 10:24:14 AM) comp.lang.ruby I'm coding with DBI and MSSQL. I've connected to the server with following line of code. dbh = DBI.connect('DBI:ODBC:driver_name', 'user_name', 'user_pwd') ....and if it suppose that there's a stored procedu... hongseok
using std::queue with two threads6400 (8/13/2007 9:43:21 AM) comp.lang.c++.moderated I've two threads and one thread only write to std::queue using push() function and another thread only read from std::queue using front() and pop() functions. If I suppose to use no mutex, is the queue thread-... hongseok
Problem with adding a new record into MySQL DB222 (7/12/2006 4:45:31 AM) comp.lang.ruby MySQL DB's character-set is UTF8 and RoR(Ruby on Rails)'s database.yml has a line 'encoding: utf8'. If I add a new record using RoR's new action via Web Browser, Korean is stored without problem. If I set fiels... hongseok
compiling c program using rb_eval_string()342 (2/23/2006 11:48:13 AM) comp.lang.ruby I tried to call rb_eval_string(), so I wrote simple C code. #include "/home/xopht/lib/1.8/i686-linux/ruby.h" int main() { rb_eval_string( "puts" ); return 0; } I compiled it and get bellow result. [... hongseok
trouble with rexml430 (2/22/2006 7:58:07 AM) comp.lang.ruby I read XML file using REXML. The XML file contains Korean charactors. If I print the file using REXML::Document.write $stdout, everything is okay.( means Korean is printed out narmaly ) But, if I try again usi... hongseok
hongseok.yoon's replies:
Items(2) /1
trouble with rexml430 (2/22/2006 7:58:07 AM) comp.lang.ruby I read XML file using REXML. The XML file contains Korean charactors. If I print the file using REXML::Document.write $stdout, everything is okay.( means Korean is printed out narmaly ) But, if I try again usi... hongseok.yoon(19)
compiling c program using rb_eval_string()342 (2/23/2006 11:48:13 AM) comp.lang.ruby I tried to call rb_eval_string(), so I wrote simple C code. #include "/home/xopht/lib/1.8/i686-linux/ruby.h" int main() { rb_eval_string( "puts" ); return 0; } I compiled it and get bellow result. [... hongseok.yoon(19)