General C++ Programming - September 2011 (Page 23)

Play several Wave files
 
Hi Does anyone know how to playing a set of short WAV files without delay? I was using the following, but there is a delay in-between. PlaySound("a.wav...
[2 replies] Last: no. when I use SND_ASYNC, the result is what you hear is just only b.w... (by jjyuyujj)
exe. Does Not Run Properly Every Time
 
Hello :D I made a console app in Visual Studio C++ 2010. When I run the .exe it opens, but the app does not function like it should. It only works when I reope...
[4 replies] Last: I think I might have located the source of the problem: There might b... (by Muhasaresa)
push_back on list problem
 
Hi, i have a problem with push_back: list<Student*> students; list<Student*> students; void Library::addStudent(const Student& student){ try{ if (...
[6 replies] Last: thnx man ! (by aymanbah)
is there anyone who has a good experience in (c++) esp strings
 
http://www.cplusplus.com/forum/general/50084/
[no replies]
by BRMV
where to store data
 
In the development of a win 32 console application in c++, i am required to use data which is updated frequently. ex: In the booking of a train tickets aft...
[1 reply] : I used a text file but getting availability of different trains from ... (by Athar)
exception class
 
Hi,i have an error on this class: #include <exception>; class StudentAdding: public exception { //exception - Error: not claas or struct name. public: ...
[1 reply] : problem fixed, thnx (by aymanbah)
how to make program to calculate the total salary of employees of the bonus earned?
 
calculate the total salary of employees of the bonus earned. how to create a program to calculate the total salary of employees of the bonus earned?. There a...
[1 reply] : This is a beginner-level question, so it really belongs in the beginne... (by Blackavar)
Slot Machine help
 
Im new to C++ and trying to make my own little program for fun. I was at the casino the other day playing quarter slots and I was inspired to make my own little...
[1 reply] : Im new to C++ Then this is appropriate for the beginner forum. Just... (by Blackavar)
Pointer arithmetic
 
Hello. Today in my C++-lesson I tought pointer arithmetic. This was my example: int main(){ int a = 7; int b = 5; int c = 4; int* x = &c; x++; cout...
[16 replies] Last: Sorry, but that's why C++ is not my favourite language for programmi... (by Moschops)
Where are my errors in this C Program?
 
Write a C program that examines each character in a two-dimensional array and determines how many of the characters are vowels (a, e, i, o, u), how many are ...
[2 replies] Last: I have to use 2 dimensional array and one inner and one outer for loop... (by rizwanul)
Strange delete behavior
 
I have to make a class that manages a pile of cards. It dynamically expands the array that is created with a pointer. Because I'm using a pointer I have a des...
[11 replies] Last: It looks like you're going out of bounds in sort_pile(). In the first ... (by gpotw)
Where are my errors in this code?
 
Hi, I'm trying create a function to connect to my database "MyAgenda", but, the compiler print this error: andre@Andre:~$ gcc banco.c -o banco banco.c: In...
[2 replies] Last: Oh, it's really. And missing too a flag in gcc: -lmysqlclient Thank y... (by andrezc)
by AWH
Should I Know the Specifics of C++ Operations?
 
I've started programming no too long ago and I've learnt most of the basics. Now that I have the majority of the basics under my belt, I wanted to know if it's ...
[3 replies] Last: Hello, kbw. I thought DMA was a feature. Regardless, I'll take your a... (by AWH)
Finding max
 
#include <iostream> using namespace std; int main () { int num, numNums, max,i; cout<<"Please enter how many numbers you will enter:"; cin>>nu...
[2 replies] Last: Hello, Creshon. It appears you have a missing semi-colon on the 21 st... (by AWH)
exception classes
 
Hi, is it accepted to write all the exception classes on one .h file, and to include it on the other calsses that may use it ? thnx
[1 reply] : You can do that, and if you're working on something small, it may seem... (by kbw)
C++ CLI Form Problems - Label Display
 
My overall goal is to create a program to read the mouse position on a form and control a servo motor attached to the program based on the mouse position. Howev...
[no replies]
Best technique for storing large amounts of data
 
As the title would suggest I'm looking for a really optimal way of storing high volumes of data. My requirements favor speed over compression, but a small footp...
[6 replies] Last: The data is more than likely going to be loads of small entries. What ... (by Cheraphy)
Sending many copies of an array to a function
 
I have an array (or vector or some other object which stores many numbers, I'm not fussy). It has L elements and I call it 'bits'. I want to make N copies of bi...
[5 replies] Last: Study all about arrays, what they are, how they look like in memory, e... (by webJose)
defining a function with template after main()
 
Dear all, I have the following code: #include <iostream> using namespace std; int main() { void print(T var); print(110); } template <class T> void print(...
[1 reply] : prototype should be placed before main like this (on line 3) template... (by cppbliss)
by DSTR3A
Function Always Returns Zero
 
I have this function that I tested outside the current solution and it worked fine. When I moved it into the new solution and changed it to search data which is...
[4 replies] Last: Please use [co de] // code here [/co de] tags. Back on topic, c... (by Catfish)
September 2011 Pages: 1... 2122232425... 31
  Archived months: [aug2011] [oct2011]

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