Communities

Total Articles 180
No.
Subject
Author
120 Object parameter and Object return file
[Level:16]gilgil
76347   Sep 13, 2011
[Class] class String { public: // // constructor // String() { cout << this << "::constructor() "; } String(char* p) { cout << this << "::constructor(char*)- "; } String(const char* p) { cout << this << "::constr...  
119 How to use property code in C++
[Level:16]gilgil
76405   Apr 05, 2012
To enhahce code readibility, C++ programmers sometime prefer property code(getter, setter) to access member function. Here is a sample code. class Person { protected: int m_age; public: __declspec(property (get...  
118 How to get real public IP on VPN host moviefile
[Level:16]gilgil
76894   Mar 27, 2010
 
117 Difference between MSVC and CBuilder when writing static data area file
[Level:16]gilgil
77233   Mar 26, 2010
Guess the result of following code. void test1() { char str[] = "hello"; // string copy. printf("%s\n", str); *str = 'H'; // copied data would be changed. } void test2() { char* str = "world"; ...  
116 [qt] How to add debug info in a project.
[Level:16]gilgil
77296   Aug 03, 2016
It add "-g" option in compiling a project. CONFIG += force_debug_info  
115 How to demangle class name using boost 2 file
[Level:16]gilgil
77447   Aug 31, 2011
[Source] #include <boost/units/detail/u-tility.hpp> #include <iostream> #include <typeinfo> namespace bud = boost::units::detail-; using namespace std; namespace ns { class MyClass {}; struct MyStruct {}; } void test() { cout << "i...  
114 C++ examples (example source code)
[Level:16]gilgil
77892   May 02, 2010
http://www.java2s.co-m/Code/Cpp/CatalogCp-p.htm  
113 An efficient way to pass a big-sized string into a function. file
[Level:16]gilgil
77966   May 06, 2010
Suppose that there exists a big-sized string, and I would pass this string variable into a specific function. What will be the best way for speed? [Test] 1. Make 10,000,000 byte length string varia...  
112 Running specific test units selected by their name 1 image
[Level:16]gilgil
78324   Sep 02, 2011
> The Unit Test Framework > User's guide > Runtime configuration > Run by name Running specific test units selected by their name In regular circumstances test module execution initiates testing of a...  
111 Be careful when you receive return value as reference or pointer type. file
[Level:16]gilgil
78449   Oct 24, 2011
[Source] MyInt foo() { MyInt a(1000); return a; } MyInt& ref_foo() { MyInt a(2000); return a; } MyInt* ptr_foo() { MyInt a(3000); return &a; } void foo_test() { printf("\n-------- foo test --------\n"); { MyInt b ...  
110 [Qt] How to create a library with Qt and use it in an application
[Level:16]gilgil
78989   Feb 18, 2014
from : http://qt-project.org/wiki/How-_to_create_a_library-_with_Qt_and_use_it_-in_an_application How to create a library with Qt and use it in an applicationIntroduct-ionThis tutorial illustrates different approac...  
109 [linux] pipe_test file
[Level:16]gilgil
79061   Dec 23, 2014
pipe_test.tar.gz  
108 [c++] Definitions of destructor
[Level:16]gilgil
79097   Jan 16, 2016
from : http://mentorembedde-d.github.io/cxx-abi/abi.html base object destructor of a class T A function that runs the destructors for non-static data members of T and non-virtual direct base classes of T. c...  
107 Event for boost
[Level:16]gilgil
79122   Sep 23, 2011
[Header] #include <boost/interprocess/s-ync/scoped_lock.hpp&-gt; #include <boost/thread/conditi-on.hpp> #include <boost/thread/mutex.h-pp> // ---------------------------------------------------------------------------- // Event // ---------------...  
106 [c++] cpp_virtual_function_and_assembly file
[Level:16]gilgil
79137   Jan 19, 2016
[2016.01.19] cpp_virtual_function-_and_assembly_201601-19.tar.gz  
105 qt-everywhere-4.8.4-configure 1 file
[Level:16]gilgil
79147   May 03, 2013
Unable to detect the platform from environment. Use -platform command lineargument or set the QMAKESPEC environment variable and run configure again See the README file for a list of supported op...  
104 Sound Processing Library(soundtouch)
[Level:16]gilgil
79293   Jun 09, 2011
http://www.surina.ne-t/soundtouch  
103 How to overload new and delete operator in C++
[Level:16]gilgil
79293   Sep 03, 2011
[debug_new.h] #ifndef __DEBUG_NEW_H__ #define __DEBUG_NEW_H__ #include <malloc.h> #include <stdio.h> void* operator new(size_t size) { void* res = malloc(size); printf("void* operator new(size_t size) %u %p\n", s...  
102 Difference between exit() and _exit() file
[Level:16]gilgil
79319   Mar 15, 2010
[Question]Guess the result of the following codes. class Object { public: string name; Object(const string name) { this->name = name; cout << "Object::Object " << name << endl; } virtual ~Object() {...  
101 [qt][android] how to run app in command line
[Level:16]gilgil
79390   Nov 02, 2014
If project name is "untitied", you can run android application in the following command. adb shell am start -n org.qtproject.exampl-e.untitled/org.qtpro-ject.qt5.android.bin-dings.QtActivity  


XE Login