User contributions
From ProgrammingExamples
(newest | oldest) View (newer 100 | older 100) (20 | 50 | 100 | 250 | 500)
- 21:23, 28 November 2010 (diff | hist) . . (+86) . . Qt
- 21:20, 28 November 2010 (diff | hist) . . (-7) . . Qt/Widgets/MessageBoxFromThread
- 20:01, 28 November 2010 (diff | hist) . . (+143) . . N CPP/STL/Heap (Created page with 'See priority queue (these are the same thing). ==Heap.cpp== <source lang="cpp"> </source> ==CMakeLists.txt== <source lang="cmake"> </source>')
- 19:59, 28 November 2010 (diff | hist) . . (+23) . . CPP (→STL Data Structures)
- 19:56, 28 November 2010 (diff | hist) . . (+101) . . N CPP/TCPSocket (Created page with '==TCPSocket.cpp== <source lang="cpp"> </source> ==CMakeLists.txt== <source lang="cmake"> </source>') (current)
- 19:55, 28 November 2010 (diff | hist) . . (+32) . . CPP (→Utility)
- 19:10, 28 November 2010 (diff | hist) . . (+240) . . Qt/Widgets/MessageBoxFromThread
- 15:35, 28 November 2010 (diff | hist) . . (+87) . . m Qt/Widgets/MessageBoxFromThread
- 15:32, 28 November 2010 (diff | hist) . . (+1,594) . . Qt/Widgets/MessageBoxFromThread
- 15:16, 28 November 2010 (diff | hist) . . (+896) . . N Qt/Widgets/MessageBoxFromThread (Created page with '==MessageBoxFromThread.cxx== <source lang="cpp"> #include <QThread> #include <QMessageBox> #include <QApplication> #include <iostream> class MyThread : public QThread { public…')
- 15:15, 28 November 2010 (diff | hist) . . (+63) . . Qt
- 15:08, 28 November 2010 (diff | hist) . . (+725) . . N Qt/Widgets/Thread (Created page with '==Thread.cxx== <source lang="cpp"> #include <QThread> class MyThread : public QThread { public: virtual void run(); }; void MyThread::run() { for( int count = 0; count …')
- 15:08, 28 November 2010 (diff | hist) . . (+31) . . Qt
- 21:16, 23 November 2010 (diff | hist) . . (+893) . . N CPP/Boost/ThreadsMember (Created page with '==ThreadsMember.cxx== <source lang="cpp"> #include <iostream> #include <vector> #include <cstdlib> #include <cmath> #include <boost/thread.hpp> #include <boost/bind.hpp> using …')
- 20:48, 23 November 2010 (diff | hist) . . (+2,061) . . N OpenGL/Text (Created page with 'This example displays white text in the lower left corner of the window. ==Text.cxx== <source lang="cpp"> #include <iostream> #include <cstdio> #include <string> #include <cstdl…') (current)
- 20:47, 23 November 2010 (diff | hist) . . (+5,051) . . N OpenGL/Screenshot (Created page with 'Requires VXL. ==Test.cxx== <source lang="cpp"> #include <iostream> #include <cstdlib> //for exit() #include <GL/glut.h> #include <vil/vil_rgb.h> #include <vil/vil_load.h> #inc…') (current)
- 20:44, 23 November 2010 (diff | hist) . . (+3,146) . . N OpenGL/Lighting (Created page with '==Lighting.cxx== <source lang="cpp"> #include <iostream> #include <glut.h> using namespace std; void display(); void LookAt(); void DrawCube(); void DrawSphere(const float sca…') (current)
- 20:44, 23 November 2010 (diff | hist) . . (+89) . . OpenGL (current)
- 20:42, 23 November 2010 (diff | hist) . . (+2,351) . . N OpenGL/DisplayList (Created page with '==DisplayList.cxx== <source lang="cpp"> #include <iostream> #include <GL/glut.h> using namespace std; void display(void); void polygon(int a, int b, int c , int d); void DrawC…') (current)
- 20:41, 23 November 2010 (diff | hist) . . (+5,109) . . N OpenGL/ColorPick (Created page with '==ColorPick.cxx== <source lang="cpp"> #include <iostream> #include <vector> #include <map> #include <cstdio> #include <glut.h> void display(); void LookAt(); void DrawCube(cons…') (current)
- 20:41, 23 November 2010 (diff | hist) . . (+70) . . OpenGL
- 20:37, 23 November 2010 (diff | hist) . . (+3,046) . . N OpenGL/Alpha (Created page with '==Alpha.cxx== <source lang="cpp"> #include <iostream> #include <glut.h> using namespace std; void display(); void LookAt(); void DrawSphere(const float radius, const float alp…') (current)
- 20:36, 23 November 2010 (diff | hist) . . (+3,387) . . N OpenGL/DrawCube (Created page with '==DrawCube.cxx== <source lang="cpp"> #include <iostream> #include <cstdlib> //for exit() #include <GL/glut.h> void display(void); void ProcessKeyboard(unsigned char key, int x,…') (current)
- 20:36, 23 November 2010 (diff | hist) . . (+100) . . N OpenGL (Created page with '=== OpenGL/glut Examples === * Draw a cube * Alpha/transparency')
- 20:23, 23 November 2010 (diff | hist) . . (+144) . . Main Page
- 13:55, 23 November 2010 (diff | hist) . . (+677) . . N CPP/PThreads (Created page with '==PThreads.cpp== <source lang="cpp"> #include <iostream> #include <pthread.h> #include <cstdlib> using namespace std; void *task(void *arg) { for (unsigned int i = 0; i < 1e3…') (current)
- 13:54, 23 November 2010 (diff | hist) . . (+30) . . CPP (→Utility)
- 13:53, 23 November 2010 (diff | hist) . . (+95) . . CPP/Sockets (current)
- 13:51, 23 November 2010 (diff | hist) . . (+3,858) . . N CPP/Sockets (Created page with 'First run server 51717 Then run (while 'server' is still running): client localhost 51717 The client will ask you to type a message. Do this, and press enter. You will see th…')
- 13:49, 23 November 2010 (diff | hist) . . (+28) . . CPP (→Utility)
- 20:26, 6 November 2010 (diff | hist) . . (+1) . . m Qt/Widgets/Timer (→CMakeLists.txt)
- 20:26, 6 November 2010 (diff | hist) . . (+1) . . m Qt/Widgets/RadioButton (→CMakeLists.txt)
- 20:26, 6 November 2010 (diff | hist) . . (+1) . . m Qt/Widgets/FileDialog (→CMakeLists.txt) (current)
- 20:26, 6 November 2010 (diff | hist) . . (+1) . . m Qt/Widgets/Slider (→CMakeLists.txt)
- 20:26, 6 November 2010 (diff | hist) . . (+1) . . m Qt/Widgets/ProgressBarMarquee (→CMakeLists.txt) (current)
- 20:26, 6 November 2010 (diff | hist) . . (+1) . . m Qt/Widgets/ProgressBar (→CMakeLists.txt) (current)
- 20:26, 6 November 2010 (diff | hist) . . (+1) . . m Qt/Widgets/ComboBox (→CMakeLists.txt) (current)
- 20:26, 6 November 2010 (diff | hist) . . (+1) . . m Qt/Widgets/CheckBox (→CMakeLists.txt) (current)
- 20:25, 6 November 2010 (diff | hist) . . (+1) . . m Qt/CallANormalFunction (→CMakeLists.txt) (current)
- 20:25, 6 November 2010 (diff | hist) . . (-1) . . m Qt/ButtonWidget (→CMakeLists.txt) (current)
- 14:09, 30 October 2010 (diff | hist) . . (+145) . . CPP/Casting (current)
- 14:09, 30 October 2010 (diff | hist) . . (+94) . . CPP/2DVector (→CMakeLists.txt) (current)
- 16:17, 3 October 2010 (diff | hist) . . (+416) . . N CPP/AnonymousNamespace (Created page with '==AnonymousNamespace.cxx== <source lang="cpp"> #include <iostream> namespace { void Test(); } int main (int argc, char *argv[]) { Test(); return 0; } namespace { void…') (current)
- 16:16, 3 October 2010 (diff | hist) . . (+49) . . CPP (→Programming Examples)
- 08:42, 21 September 2010 (diff | hist) . . (+16) . . m CPP/STL/Vector
- 11:54, 19 September 2010 (diff | hist) . . (+573) . . N CPP/Strings/FindAndReplace (Created page with '==FindAndReplace.cpp== <source lang="cpp"> #include <iostream> #include <string> int main(int argc, char *argv[]) { std::string sentence = "hello world test"; std::string w…') (current)
- 11:54, 19 September 2010 (diff | hist) . . (+98) . . CPP (→Strings)
- 10:56, 30 August 2010 (diff | hist) . . (+6) . . CPP (→Strings)
- 08:38, 9 August 2010 (diff | hist) . . (+12) . . m CPP (→Programming Examples)
- 14:38, 4 August 2010 (diff | hist) . . (+880) . . N CPP/STL/Stack (Created page with '==Stack.cxx== <source lang="cpp"> #include <iostream> #include <stack> #include <vector> #include <cstdlib> #include <algorithm> double RandomDouble(); int main(int argc, char*…') (current)
- 14:37, 4 August 2010 (diff | hist) . . (+25) . . CPP (→STL Data Structures)
- 14:21, 1 August 2010 (diff | hist) . . (+850) . . N CPP/Boost/Numeric/MultiArray (Created page with '==MultiArray.cpp== <source lang="cpp"> #include "boost/multi_array.hpp" #include <cassert> #include <iostream> int main () { // Create a 3D array that is 3 x 4 x 2 typedef …') (current)
- 14:20, 1 August 2010 (diff | hist) . . (+59) . . CPP (→Boost)
- 13:49, 1 August 2010 (diff | hist) . . (+574) . . N CPP/2DVector (Created page with '==2DVector.cpp== <source lang="cpp"> #include <iostream> #include <vector> #include <iomanip> int main(int argc, char *argv[]) { std::vector<std::vector<int> > items ( 5, std:…')
- 13:46, 1 August 2010 (diff | hist) . . (+29) . . CPP (→Programming Examples)
- 15:59, 29 July 2010 (diff | hist) . . (+519) . . N CPP/Math/SumVector (Created page with '==SumVector.cpp== <source lang="cpp"> #include <iostream> #include <vector> #include <numeric> int main (int argc, char *argv[]) { std::vector<int> vec; vec.push_back(1); …') (current)
- 15:58, 29 July 2010 (diff | hist) . . (+49) . . CPP (→Math)
- 14:55, 27 July 2010 (diff | hist) . . (+802) . . CPP/Strings/Split (current)
- 02:10, 4 July 2010 (diff | hist) . . (+216) . . Talk:CPP/BinaryIO (current)
- 02:09, 4 July 2010 (diff | hist) . . (+275) . . Talk:CPP/Classes/ConstructorInheritance (current)
- 02:07, 4 July 2010 (diff | hist) . . (+51) . . m User talk:Pb (current)
- 02:06, 4 July 2010 (diff | hist) . . (+59) . . N User talk:Pb (Created page with 'Thanks for your addition/correction! Keep them coming! !!!!')
- 19:16, 1 July 2010 (diff | hist) . . (+414) . . Talk:CPP
- 08:47, 29 June 2010 (diff | hist) . . (+2,635) . . N Qt/Widgets/Timer (Created page with '==Timer.cpp== <source lang="cpp"> #include <QProgressDialog> #include <QApplication> #include "form.h" int main( int argc, char **argv ) { QApplication app(argc, argv); Mai…')
- 08:45, 29 June 2010 (diff | hist) . . (+3,517) . . N Qt/Widgets/RadioButton (Created page with '==main.cpp== <source lang="cpp"> #include <QApplication> #include "form.h" int main(int argc, char *argv[]) { QApplication app(argc, argv); Form form; form.sho…')
- 08:44, 29 June 2010 (diff | hist) . . (+2,560) . . N Qt/Widgets/Slider (Created page with '==main.cpp== <source lang="cpp"> #include <QApplication> #include "form.h" int main(int argc, char *argv[]) { QApplication app(argc, argv); Form form; form.sho…')
- 08:42, 29 June 2010 (diff | hist) . . (+3,151) . . N Qt/Widgets/ProgressBarMarquee (Created page with '==ProgressBarMarquee.cpp== <source lang="cpp"> #include <qapplication.h> #include "form.h" int main( int argc, char **argv ) { QApplication app(argc, argv); MainWindow…')
- 08:40, 29 June 2010 (diff | hist) . . (+3,116) . . N Qt/Widgets/ProgressBar (Created page with '==ProgressBar.cpp== <source lang="cpp"> #include <qapplication.h> #include "form.h" int main( int argc, char **argv ) { QApplication app(argc, argv); MainWindow window…')
- 08:38, 29 June 2010 (diff | hist) . . (+3,362) . . N Qt/Widgets/FileDialog (Created page with '==FileDialog.cpp== <source lang="cpp"> #include <QApplication> #include "form.h" int main(int argc, char *argv[]) { QApplication app(argc, argv); MainWindow window; …')
- 08:34, 29 June 2010 (diff | hist) . . (+2,576) . . N Qt/Widgets/ComboBox (Created page with '==demo.cpp== <source lang="cpp"> #include <QApplication> #include "main.h" int main(int argc, char *argv[]) { QApplication app(argc, argv); MainWindow window; windo…')
- 08:32, 29 June 2010 (diff | hist) . . (+2,756) . . N Qt/Widgets/CheckBox (Created page with '==main.cpp== <source lang="cpp"> #include <QApplication> #include "form.h" int main(int argc, char *argv[]) { QApplication app(argc, argv); Form form; form.sho…')
- 08:30, 29 June 2010 (diff | hist) . . (+355) . . Qt
- 08:28, 29 June 2010 (diff | hist) . . (+1,051) . . N Qt/CallANormalFunction (Created page with '==CallAFunction.cpp== <source lang="cpp"> #include <qpushbutton.h> #include <qapplication.h> #include "Foo.h" void MyFunction() { std::cout << "hi" << std::endl; } int main(…')
- 08:27, 29 June 2010 (diff | hist) . . (+66) . . Qt
- 08:24, 29 June 2010 (diff | hist) . . (+40) . . Qt/ButtonWidget (→buttonform.ui)
- 08:23, 29 June 2010 (diff | hist) . . (+988) . . Qt/ButtonWidget
- 08:22, 29 June 2010 (diff | hist) . . (+1,407) . . N Qt/ButtonWidget (Created page with '==main.cpp== <source lang="cpp"> #include <QApplication> #include "buttonform.h" int main(int argc, char *argv[]) { QApplication app(argc, argv); ButtonForm buttonform;…')
- 08:21, 29 June 2010 (diff | hist) . . (+36) . . Qt
- 06:52, 29 June 2010 (diff | hist) . . (+347) . . N User talk:FirstPerson (Created page with 'Thanks for your additions! I have a couple of questions. 1) On the 'struct' page, why did you return int& first(){ return m_first; } instead of simply int first(){ return m_f…') (current)
- 06:51, 29 June 2010 (diff | hist) . . (+296) . . N Talk:CPP/Debugging/Assert (Created page with 'I've heard that assert should be used only to test "contractual" function things. That is, in this example you have used it to verify a password, but that is more of a "runtime" …') (current)
- 06:49, 29 June 2010 (diff | hist) . . (-2) . . CPP/STL/SetDifference
- 18:45, 28 June 2010 (diff | hist) . . (+36) . . CPP/Strings/SingleCharacterTag (current)
- 18:14, 28 June 2010 (diff | hist) . . (+477) . . N CPP/Strings/SingleCharacterTag (Created page with '==SingleCharacterTag.cpp== <source lang="cpp"> #include <iostream> #include <string> int main() { size_t firstPos = 0, secondPos; std::string temp = "some text a <tag> and m…')
- 18:14, 28 June 2010 (diff | hist) . . (+81) . . CPP (→Strings)
- 16:20, 28 June 2010 (diff | hist) . . (+286) . . N Qt/ProgrammaticButton (Created page with '==ProgrammaticButton.cpp== <source lang="cpp"> #include <qapplication.h> #include <qpushbutton.h> int main( int argc, char **argv ) { QApplication a( argc, argv ); QPushBu…') (current)
- 16:20, 28 June 2010 (diff | hist) . . (+60) . . N Qt (Created page with '* Programmatically create a button')
- 16:15, 28 June 2010 (diff | hist) . . (+580) . . N CPP/Boost/Timer (Created page with '==Timer.cpp== <source lang="cpp"> #include <iostream> #include <vector> #include <cstdlib> #include <cmath> #include <boost/timer.hpp> void LongFunction(const unsigned int BigN…')
- 16:15, 28 June 2010 (diff | hist) . . (+28) . . CPP (→Boost)
- 16:13, 28 June 2010 (diff | hist) . . (+651) . . N CPP/Boost/Threads (Created page with '==Threads.cpp== <source lang="cpp"> #include <iostream> #include <vector> #include <cstdlib> #include <cmath> #include <boost/thread.hpp> void LongFunction(); int main(int a…')
- 16:13, 28 June 2010 (diff | hist) . . (+67) . . CPP (→Boost)
- 16:08, 28 June 2010 (diff | hist) . . (+1,204) . . N CPP/Boost/ProgressBar (Created page with '==ProgressBar.cpp== <source lang="cpp"> #include <iostream> #include <vector> #include <cstdlib> #include <cmath> #include <boost/progress.hpp> void LongFunction(); void Double…')
- 16:08, 28 June 2010 (diff | hist) . . (+40) . . CPP (→Boost)
- 16:06, 28 June 2010 (diff | hist) . . (+1,186) . . N CPP/Boost/ProgramOptions/MultipleArguments (Created page with '==MultipleArguments.cpp== <source lang="cpp"> #include <iostream> #include <vector> #include <cstdlib> #include <cmath> #include <boost/program_options.hpp> namespace po = boos…')
- 16:06, 28 June 2010 (diff | hist) . . (0) . . m CPP/Boost/ProgramOptions/Simple
- 16:05, 28 June 2010 (diff | hist) . . (+2,960) . . N CPP/Boost/ProgramOptions/Simple (Created page with '==Simple.cpp== <source land="cpp"> #include <iostream> #include <vector> #include <cstdlib> #include <cmath> #include <boost/program_options.hpp> namespace po = boost::program_…')
- 16:05, 28 June 2010 (diff | hist) . . (+197) . . CPP (→Boost)
- 16:01, 28 June 2010 (diff | hist) . . (+400) . . N CPP/Boost/Numeric/Matrix (Created page with '==Matrix.cpp== <source lang="cpp"> #include <boost/numeric/ublas/matrix.hpp> #include <boost/numeric/ublas/io.hpp> int main () { using namespace boost::numeric::ublas; matr…')
- 16:01, 28 June 2010 (diff | hist) . . (+36) . . CPP (→Boost)
- 15:57, 28 June 2010 (diff | hist) . . (+506) . . N CPP/STL/RandomData (Created page with '==Generate.cpp== <source lang="cpp"> #include <iostream> #include <vector> #include <algorithm> template <typename T> class data_filler { public: data_filler(){} T operat…')
- 15:54, 28 June 2010 (diff | hist) . . (+1,368) . . N CPP/Boost/Histogram (Created page with '==Histogram.cpp== <source lang="cpp"> #include <vector> #include <algorithm> #include <iostream> #include <boost/accumulators/accumulators.hpp> #include <boost/accumulators/stat…')
(newest | oldest) View (newer 100 | older 100) (20 | 50 | 100 | 250 | 500)