User contributions
From ProgrammingExamples
(newest | oldest) View (newer 100 | older 100) (20 | 50 | 100 | 250 | 500)
- 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…')
- 15:53, 28 June 2010 (diff | hist) . . (+131) . . CPP
- 15:36, 28 June 2010 (diff | hist) . . (+782) . . N CPP/STL/SetDifference (Created page with '==SetDifference.cpp== <source lang="cpp"> #include <iostream> #include <list> #include <algorithm> #include <string> #include <iterator> template<class Coll> void print(const Co…')
- 15:36, 28 June 2010 (diff | hist) . . (+99) . . CPP (→STL Algorithms)
- 14:44, 28 June 2010 (diff | hist) . . (-380) . . Main Page
- 14:43, 28 June 2010 (diff | hist) . . (-597) . . Help:Editing
- 14:43, 28 June 2010 (diff | hist) . . (+595) . . N Help:DosAndDonts (Created page with '=== '''Do'''s and '''Don't'''s for using the Programming Examples Wiki === * '''Do''' ** Create a 'dispatch page' for each new language that you add, put links to examples in tha…') (current)
- 19:30, 27 June 2010 (diff | hist) . . (+126) . . User talk:Griswolf (current)
- 18:21, 27 June 2010 (diff | hist) . . (+191) . . User talk:Griswolf
- 07:09, 27 June 2010 (diff | hist) . . (+127) . . N User talk:Bench (Created page with 'I like the separation of "c-style" techniques. Keep up the good work! ~~~~') (current)
- 22:43, 26 June 2010 (diff | hist) . . (+229) . . N User talk:Griswolf (Created page with 'Griswolf - Good idea! I was planning to do this once we got some examples in these other languages, but you beat me to the punch! Keep the ideas and the additions coming! ~~~~')
- 22:42, 26 June 2010 (diff | hist) . . (+1,439) . . N WxWidgets (Created page with ' A C++ based toolkit that is primarily used to create nice graphics and GUIs. From their [http://www.wxwidgets.org/ Home Page]: <blockquote style="background-color: lightgrey; bo…')
- 22:42, 26 June 2010 (diff | hist) . . (-1,450) . . Main Page
- 14:38, 26 June 2010 (diff | hist) . . (+756) . . CPP/Switch (→Switch.cpp) (current)
- 09:11, 26 June 2010 (diff | hist) . . (+511) . . Main Page
- 08:42, 26 June 2010 (diff | hist) . . (+17) . . Main Page
- 12:52, 25 June 2010 (diff | hist) . . (+24) . . Main Page (→wxWidgets)
- 07:10, 25 June 2010 (diff | hist) . . (-64) . . CPP/ParallelSort (current)
- 21:27, 23 June 2010 (diff | hist) . . (+52) . . m User:Galik (current)
- 21:27, 23 June 2010 (diff | hist) . . (+162) . . N User:Galik (Created page with 'Hi Galik! Please take a look through the existing examples and clarify, comment, and add! Also feel free to create new examples! Thanks for your interest! Dave')
- 15:15, 23 June 2010 (diff | hist) . . (+1,486) . . N ProgrammingExamples:About (Created page with 'I am a frequent user of the c++ forum on daniweb.com (http://www.daniweb.com/forums/forum8.html). On this forum, at least once a week someone will ask "How do I sort an array?"…') (current)
- 10:22, 23 June 2010 (diff | hist) . . (+1,617) . . N User:Daviddoria (Created page with '== About me == My website: http://www.rpi.edu/~doriad/ My blog: http://daviddoria.blogspot.com/ == Why did I make this site? == I am a frequent user of the c++ forum on daniweb…') (current)
- 10:18, 23 June 2010 (diff | hist) . . (+170) . . N User talk:Nbaztec (Created page with 'Hi Nbaztec, It looks like you must use source lang="cpp" rather than simply 'source'. What are you trying to do? ~~~~') (current)
- 09:20, 23 June 2010 (diff | hist) . . (+72) . . Main Page (→Welcome to ProgrammingExamples.net!)
- 09:20, 23 June 2010 (diff | hist) . . (+621) . . N CPP/VariableNumberOfArguments (Created page with '==VariableNumberOfArguments.cpp== <source lang="cpp"> #include <iostream> #include <stdarg.h> void Function1(unsigned int num, ...); void Function2(unsigned int num, va_list ap)…') (current)
- 09:19, 23 June 2010 (diff | hist) . . (+74) . . Main Page (→C++)
- 09:19, 23 June 2010 (diff | hist) . . (+331) . . N CPP/Typedef (Created page with '==Typedef.cpp== <source lang="cpp"> #include <iostream> typedef std::pair<unsigned int, unsigned int> IndexPair; int main(int argc, char *argv[]) { IndexPair A; A.first = 2…') (current)
- 09:18, 23 June 2010 (diff | hist) . . (+26) . . Main Page (→C++)
- 09:18, 23 June 2010 (diff | hist) . . (+353) . . N CPP/STL/Tuple (Created page with '==Tuple.cpp== <source lang="cpp"> #include <iostream> #include <tuple> int main (int argc, char *argv[]) { std::tuple<int,char,std::string> tup( 4, 'c', std::string( "Hello W…') (current)
- 09:18, 23 June 2010 (diff | hist) . . (+25) . . Main Page (→STL Data Structures)
- 09:16, 23 June 2010 (diff | hist) . . (+353) . . N CPP/Switch (Created page with '==Switch.cpp== <source lang="cpp"> #include <iostream> using namespace std; int main(int argc, char *argv[]) { int test = 1; switch ( test ) { cout << "before cases" …')
- 09:15, 23 June 2010 (diff | hist) . . (+24) . . Main Page (→C++)
- 09:14, 23 June 2010 (diff | hist) . . (+665) . . N CPP/Classes/Singleton (Created page with '==Singleton.cpp== <source lang="cpp"> #include <iostream> class Log { public: static Log* Instance() { if (!instance) // Only allow one instance of class to be…')
- 09:14, 23 June 2010 (diff | hist) . . (+38) . . Main Page (→Classes)
- 09:14, 23 June 2010 (diff | hist) . . (+168) . . N CPP/Struct (Created page with '==Struct.cpp== <source lang="cpp"> #include <iostream> struct Card { int id; }; int main (int argc, char *argv[]) { Card c; c.id = 3; return 0; } </source>')
- 09:13, 23 June 2010 (diff | hist) . . (+24) . . Main Page (→C++)
- 09:13, 23 June 2010 (diff | hist) . . (+1,557) . . N CPP/StringStream (Created page with '==StringStream.cpp== <source lang="cpp"> #include <iostream> #include <string> #include <sstream> void StringToNumber(); void TestClear(); void NumberToString(); int main(int a…')
- 09:12, 23 June 2010 (diff | hist) . . (+36) . . Main Page (→C++)
- 09:12, 23 June 2010 (diff | hist) . . (+612) . . N CPP/Strings/Split (Created page with '==Split.cpp== <source lang="cpp"> #include <iostream> #include <sstream> #include <string> #include <algorithm> #include <iterator> #include <vector> int main(int argc, char *ar…')
- 09:11, 23 June 2010 (diff | hist) . . (+30) . . Main Page (→Strings)
- 09:10, 23 June 2010 (diff | hist) . . (+1,641) . . N CPP/STL/Sort (Created page with '==Sort.cpp== <source lang="cpp"> #include <iostream> #include <vector> #include <algorithm> void Standard(); void Descending(); void NonStandard(); struct Test { int a,b…')
- 09:09, 23 June 2010 (diff | hist) . . (+23) . . Main Page (→STL Algorithms)
- 09:09, 23 June 2010 (diff | hist) . . (+257) . . N CPP/IO/Setw (Created page with '==Setw.cpp== <source lang="cpp"> #include <iostream> #include <iomanip> using namespace std; int main(int argc, char* argv[]) { cout << "d: " << setw(15) << 5.42 << endl; c…') (current)
- 09:09, 23 June 2010 (diff | hist) . . (+38) . . Main Page (→I/O)
- 09:05, 23 June 2010 (diff | hist) . . (+555) . . N CPP/STL/RandomShuffle (Created page with '==RandomShuffle.cpp== <source lang="cpp"> #include <iostream> #include <algorithm> #include <vector> int main(int argc, char* argv[]) { std::vector<int> v; //add 10 integ…')
- 09:05, 23 June 2010 (diff | hist) . . (+66) . . Main Page (→STL Data Structures)
- 09:04, 23 June 2010 (diff | hist) . . (+1,534) . . N CPP/RandomNumbers (Created page with '==RandomNumbers.cpp== <source lang="cpp"> #include <iostream> #include <cstdlib> //drand48() #include <cstdio> #include <ctime> using namespace std; void RandomInts(); void Ran…')
- 09:04, 23 June 2010 (diff | hist) . . (+39) . . Main Page (→C++)
- 09:03, 23 June 2010 (diff | hist) . . (+9) . . Main Page
- 09:02, 23 June 2010 (diff | hist) . . (+797) . . N CPP/STL/PriorityQueue (Created page with '==PriorityQueue.cpp== <source lang="cpp"> #include <iostream> #include <queue> #include <vector> #include <cstdlib> #include <algorithm> double RandomDouble(); int main(int arg…')
- 09:01, 23 June 2010 (diff | hist) . . (+1,401) . . N CPP/STL/Queue (Created page with '==Queue.cpp== <source lang="cpp"> #include <iostream> #include <queue> #include <vector> #include <cstdlib> #include <algorithm> double RandomDouble(); void TestQueue(); void Fi…') (current)
(newest | oldest) View (newer 100 | older 100) (20 | 50 | 100 | 250 | 500)