General C++ Programming - September 2008 (Page 8)

Playing sounds and music.
 
I know that using the PlaySound function you can play a .wave file but I was wondering how you would...
[no replies]
question about setprecision
 
Hello, I have this program where I have to do some calculations with data read from a text file wit...
[6 replies] Last: You can easily do that by using the manipulators fixed (to output your... (by Syx)
Excel-Like Sum function
 
Here is my code: #include <iostream> #include <stdarg.h> using namespace std; int sum( int a...
[7 replies] Last: Yes, I understood you perfectly. It's impossible. You need SOME way... (by helios)
basic char vs string question
 
#include<stdio.h> #include<stdlib.h> main() { char a ,*a1,b ,*b1; a1=&a ; b1=&b ; a1="hello...
[3 replies] Last: strcpy(a,a1) did it ;) Thanks anyways. (by califguy)
copying into array basics
 
Hey, What I am looking to is this: Receive 32 bytes of data from serial port into an array. ( This...
[no replies]
array copying and pointers
 
hi guys, I have a simple question and I am new to c, Would appreciate any advise I could get. Here...
[3 replies] Last: Thanks. Now that i look at it, it makes sense. The-> notation kinda go... (by califguy)
by inim38
creating a file in C++ ?
 
Hi, Can you plz help me in creating a file in C/C++ having columns rec_id (int), score (float), h...
[3 replies] Last: well, i'm also working on it and i guess structures in c are gonna hel... (by inim38)
What is the most efficient way to work with arrays of variables size?
 
Dear All, I would like to receive comments on the following problem. Suppose you have a matrix K ...
[5 replies] Last: Thanks to all for the insights. Maybe I need to explain more deeply. ... (by aortizb)
Constructors & Destructors
 
Why it is not possible to take the address of a Constructors & Destructors
[6 replies] Last: Now, that's more like it. Yeah, so basically what paragraph 1 is sa... (by helios)
Am I over thinking this?
 
Ok so, I have this task and it seems simple enough, and I may be over looking something or over thin...
[3 replies] Last: Think logically and translate your thinking directly to code. Like ... (by jsmith)
Variance in c++
 
Im trying to convert this equation into c++ format, any suggestions?
[2 replies] Last: give the equation (by Dibyaranjan)
C++ swap function template
 
Could someone tell me why the first 2 calls on swap will not compile and how to fix #include<iostr...
[3 replies] Last: Thanks Zhuge i renamed it and it compiled immediately and works proper... (by buffbill)
by helios
I've got a good one for you
 
I've got a good one for you The following code works, unless I comment out line 9. #include <...
[10 replies] Last: Now that's the kind of reply I was looking for. Thank you very much! ... (by helios)
by jclim3
Assigning a pointer-to object to another pointer-to object
 
Hello! I need some clarification about the code snippet below: Line 1: object * hello1 = new obje...
[1 reply] : Yes because the pointers are of the same type...however, you need to b... (by Zhuge)
3D Mesh Pathfinding
 
Alright so assume I want to code an advanced pathfinding using not the commonly used "waypoints" met...
[3 replies] Last: Whenever you run the A* algorithm for pathfinding, you're always runn... (by Zaita)
by Gonen
Question about win32 hooks.
 
Hello , I did a program that capture the picture from the clipboard(if there is one) and saves it ...
[3 replies] Last: Pressing [ PrtScr ] automatically posts the captured image to the clip... (by Duthomhas)
outputting number of correct answers on a test
 
I need to write the following program in C++ and I have no idea what to do. I have read my book and ...
[4 replies] Last: Sorry for the typo. I corrected it above. I meant it is output (extra... (by satm2008)
static function
 
I am so close but I need a push in the right direction. My program works....but it doesn't compute t...
[5 replies] Last: I would rather put the calculation part in another function like calcu... (by satm2008)
by Sjlver
Stringstream: mixing str() and operator<<
 
I'm trying to convert data using stringstreams, but the behaviour is not what I'd expect. To illustr...
[5 replies] Last: Thank you two for your replies! GuestGulkan, your write that I need... (by Sjlver)
interesting #define question
 
Guys, I have an interesting question which is giving me a "error C2010: '(' : unexpected in m...
[12 replies] Last: Yes, do as helios' suggested. The problem you are seeing austfreddo i... (by jsmith)
September 2008 Pages: 1... 67891011
  Archived months: [aug2008] [oct2008]

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