Communities

Total Articles 180
No.
Subject
Author
120 Object parameter and Object return file
[Level:16]gilgil
76447   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
76501   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
77006   Mar 27, 2010
 
117 Difference between MSVC and CBuilder when writing static data area file
[Level:16]gilgil
77377   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 How to demangle class name using boost 2 file
[Level:16]gilgil
77645   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...  
115 C++ examples (example source code)
[Level:16]gilgil
78008   May 02, 2010
http://www.java2s.co-m/Code/Cpp/CatalogCp-p.htm  
114 An efficient way to pass a big-sized string into a function. file
[Level:16]gilgil
78059   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...  
113 [qt] How to add debug info in a project.
[Level:16]gilgil
78098   Aug 03, 2016
It add "-g" option in compiling a project. CONFIG += force_debug_info  
112 Running specific test units selected by their name 1 image
[Level:16]gilgil
78416   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
78603   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 Event for boost
[Level:16]gilgil
79212   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 // ---------------...  
109 qt-everywhere-4.8.4-configure 1 file
[Level:16]gilgil
79217   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...  
108 [linux] pipe_test file
[Level:16]gilgil
79220   Dec 23, 2014
pipe_test.tar.gz  
107 Sound Processing Library(soundtouch)
[Level:16]gilgil
79414   Jun 09, 2011
http://www.surina.ne-t/soundtouch  
106 How to overload new and delete operator in C++
[Level:16]gilgil
79424   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...  
105 Difference between exit() and _exit() file
[Level:16]gilgil
79483   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() {...  
104 [qt][android] how to run app in command line
[Level:16]gilgil
79588   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  
103 [c++] cpp_virtual_function_and_assembly file
[Level:16]gilgil
79810   Jan 19, 2016
[2016.01.19] cpp_virtual_function-_and_assembly_201601-19.tar.gz  
102 [c++] Definitions of destructor
[Level:16]gilgil
79933   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...  
101 boost library link test in mingw file
[Level:16]gilgil
80125   Oct 14, 2011
[mingw version] [g++ version] $ g++ --version g++.exe (GCC) 4.5.2 Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warran...  


XE Login