257 Posted Topics

Member Avatar for myk45

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++) { …

Member Avatar for myk45
0
80
Member Avatar for Syrne

>>replaceString (string& s1, string& s2); Wrong way of calling a function. >>void replaceString (string, string); has to be void replaceString (string&, string&);

Member Avatar for Syrne
0
96
Member Avatar for vbx_wx

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]

Member Avatar for LordNemrod
0
293
Member Avatar for therstonsplace

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.

Member Avatar for myk45
0
68
Member Avatar for myk45

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 …

Member Avatar for Fbody
0
174
Member Avatar for myk45

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? …

Member Avatar for myk45
0
3K
Member Avatar for Redhaze46

@OP Are you trying to create a text/code editor? Try using Qt. You can use a simple text area + menu interface.

Member Avatar for NicAx64
0
132

The End.