General C++ Programming - February 2014 (Page 11)

Input voice from Microphone
 
I want to make a program, which should take input from microphone, do speech recognition and then match the input keyword against a list and print the value. pl...
[1 reply] : You could try Microsoft's Speech SDK 5.1 for doing the recognition. I ... (by xismn)
Somethings not right
 
I am writing a calculator that puts the operands in one stack and the operators in the other stack. It then checks the precedence and if the precedence is highe...
[no replies]
Shared Pointers
 
Hi All, I tried to searh online regarding shared pointers and I read a lot that they avoid memory leak. When smart pointers can make sure that they can avoi...
[4 replies] Last: http://en.cppreference.com/w/cpp/memory/shared_ptr/shared_ptr#Example (by LB)
Efficiency of C vs C++ streams
 
For the common std libraries that handle data in C/C++ I was wondering which of these is A) the quickest and B) uses less resources/processing. ostream << VS...
[9 replies] Last: Well I'm not particularly looking for a faster IO method, as I said I'... (by TheBeardedQuack)
Setting key=value pairs using C
 
Hi, I was wondering if there was a simpler way to use key=value pairs in C programming. I have a parser for an ini file that will create the pairs. I also ne...
[2 replies] Last: In that case, to initialize defaults, I have to do: struct settingPa... (by philonto)
Class problem c++ (1,2)
 
Hi guys, I've a problem, i've those class, that now works, because i've the attribute in public, but if i put it in private, or protected and inherited to the s...
[28 replies] Last: Ok, i've resolved the problem, i hope... I put the methods insert and ... (by Raid3nz)
by EdFab
Question about size_t
 
Documentation states that size_t is defined in header <cstddef>. However, the following program runs using size_t even though I've commented out the include. ...
[8 replies] Last: In the end you should use std::size_t if including cstddef. http://en... (by EdFab)
A set of C and C++ codes.
 
Hello guys ! I made a set of C and C++ codes in french, and now english. These little codes shows a functionnality about the language and many algorithm I f...
[2 replies] Last: I made it on the forum "Beginners". This is the first time on this on... (by Fvirtman)
by Gyiove
Calling function by sending char text of function name.
 
Hello! Is this possible? int myfunc( int a, int b, char * c ) char a = "(int)myfunc()"; char b = "(int,int,char*)" call(a, b, ...) // Function name ...
[5 replies] Last: ( link says : Error 404: This page could not be found. ) That's beca... (by MikeyBoy)
Bubble Sort and Selection Sort
 
You will write a program that uses a multidimensional array having 3 rows and 8 columns and sorts each of the rows using both a bubble sort and a selection sort...
[no replies]
Creating Classes
 
Hello experts! :) Our teacher told us to make something like: ---------------------------->Arrow Release ------------> Ranged --> ------------------------...
[2 replies] Last: Dude, no need to double-post. http://www.cplusplus.com/forum/beginner/... (by mutexe)
by werlay
A Hard One Sort Of
 
Hello guys, first this is my code below. #include <string> #include <vector> #include <iostream> #include <sstream> #include <fstream> using nam...
[2 replies] Last: @yanson467, (1) is there any way for the program to detect when a " ?... (by werlay)
Meyers singleton--Dead reference problem...Please help
 
Hi I am going throuh Meyers singleton design pattern and the dead reference problem. class MySingleton { private: MySingleton(); ...
[3 replies] Last: See: http://www.stroustrup.com/C++11FAQ.html#default http://www.strous... (by JLBorges)
help with this code!!
 
#include <stdio.h> #include <stdlib.h> int main () { FILE * pFile; long lSize; char * buffer; size_t result; pFile = fopen ( "myfile.bin" , "rb" )...
[3 replies] Last: answer my other questions. how i can print the buffer content how the ... (by Leonardo321)
by Absi
.udp
 
Hi, I would like to know how can I create a program who can adding data in .udp files .. Thanks for your help Absi
[no replies]
by coder1
Upper_bound
 
Hello, I'm having a problem using std::upper_bound here is the code: # include <iostream> # include <algorithm> using namespace std; int a ={1,1,3,4}; ...
[2 replies] Last: thank you very much. (by coder1)
by Gyiove
(3D) angle to vectors ( my terrible math... )
 
Hello! Ive created one function in the past: inline double vec_lenght( double *vector ) { return sqrt(vector *vector +vector *vector +vector *vector )...
[no replies]
help difference between char buf[5] and char * arg[5]
 
what is the difference between those 2 functions int foo(char *ch ){} int foo(char ch ){} why and when i can specify char array size in the function para...
[1 reply] : http://www.unixwiz.net/techtips/reading-cdecl.html char *ch is an ... (by Catfish666)
how to make a program autorun at windows startup, using regedit??
 
#include <iostream> using namespace std; #include <windows.h> #include <winuser.h> int Save (int key_stroke, char *file); void Stealth(); int main(...
[no replies]
Detect if xbox 360 guide button on pc is held down
 
Hi, I made this (found the trick on the net)that allow to use the guide button of a 360 pad. I use wxdevc++. #include <windows.h> #include <stdio.h> ...
[2 replies] Last: thank you very much :) I integrated it to my code but when I tried to... (by Elgringo)
February 2014 Pages: 1... 910111213... 33
  Archived months: [jan2014] [mar2014]

This is an archived page. To post a new message, go to the current page.