257 Posted Topics
Hello, i was trying to generate a series as follows: 111 112 113 121 122 123 131 132 133 and this is what i tried: [CODE]#include <stdio.h> int A[3]; void func(int k) { static int level = -1; A[++level] = k; for(int j = 1; j <= 3; j++) { … | |
Re: >>replaceString (string& s1, string& s2); Wrong way of calling a function. >>void replaceString (string, string); has to be void replaceString (string&, string&); | |
Re: Try using a temporary variable : [CODE]for(i = 0, j = strlen(a) - 1;i < j; i++, j--) { t = a[i]; a[i] = a[j]; a[j] = t; }[/CODE] | |
Re: A video is nothing but a collection of images. Try using this library called OpenCV. It has functions to extract frames and then display them. i don't know if there are other libraries for that. OpenCV supports many video formats. | |
Hello. Well, unlike C, C++ provides a concept of headers(not header files) and that these headers are something like a collection of names, which may mapped as header files by the compiler. Can anyone please correct me if im wrong in my above understanding. Also please state the main difference … | |
Hello. i needed a variable size bit string. And since bitset provides several operations, i wanted to use it. But is it possible to make it a variable size one? [CODE]class TryBits { private: string s; bitset<n> b; //now i need n = s.size(). };[/CODE] How can i achieve this? … | |
Re: @OP Are you trying to create a text/code editor? Try using Qt. You can use a simple text area + menu interface. |
The End.