General C++ Programming - December 2014 (Page 10)

by rko786
it will not open text file help
 
a
[15 replies] Last: Ok! (by minomic)
how to display structure content ?
 
i need help to display all the content of the ( codedParams & modeParam ) in the next piece of code struct SAOOffset { SAOMode modeIdc; // SAOMode is a...
[1 reply] : use cout to display something. you can use the . operator to a struct ... (by tanezavm)
Having problems reading in from/writing to files in C++
 
I am writing a program that reads in a list of pilots' names followed by a set of coordinates for each pilot from a file. The program takes the pilots' coordina...
[1 reply] : I found some problem in read function below: void read(static ifstre... (by tanezavm)
Value returning function question
 
How is the definition of the term "expression" affected by value returning functions, and why?
[5 replies] Last: Function call is an operator (it's even overloadable as "operator()") (by Cubbi)
by Ploppz
[Solved] Can't figure out how to include a simple library!
 
Hi. I've spent days trying to figure out this, searching the web and everything. I want to include SOIL into my project. The downloaded zip folder contains lib/...
[3 replies] Last: Thanks for replies. This is what my makefile currently outputs: g++... (by Ploppz)
If statements
 
Hi I'm having some problems with my conditions. No matter what number I type the second condition always prints out. Any help? This is what I'm working on: Cl...
[2 replies] Last: Ohh, I didn't know that. I get it now, thank you for explaining things... (by Newie0001)
MPU-401 ammount of voices?
 
Anyone knows how many voices (or voices per channel) are available with a MPU-401 or a modern MPU? I've read something about 64 voices being available nowadays,...
[no replies]
by extra1
How to delete a line from a text file using fstream
 
I'm trying to make a simple phonebook app that can show contacts, add, and delete. I'm pretty new to C++ and fstream functions, can anyone help me with deleting...
[6 replies] Last: From Reference Manual, string : Return Value The position of the fir... (by tcs)
by poteto
Most efficient way for a udp server to find which client it received from?
 
I'm using boost asio, but all networking api's are practically the same. I looked everywhere for an example of a udp server that stores and receives from it'...
[4 replies] Last: In my experience, games typically use TCP for most communication and s... (by LB)
About the constness of a class
 
Hi guys, I have a question about the constness of a class. If I declare a class to be const, can I access to its member function which may change its value? F...
[3 replies] Last: Thank you very much guys! I'm new to the forum and it's my first post... (by easonyoyo)
Need help with space shooter game
 
Hello everyone, I need some help with my game, after I shoot once the main character can't move anymore. #include <iostream> #include <windows.h> using ...
[7 replies] Last: I f you continue pressing the space bar, the entire game breaks (by jasonwynn10)
Grade 11 C++ Programming
 
Hi I am a Grade 11 student who needs help on a program for my computer science class. Here is the question: You work for a painting company. Your job is to c...
[8 replies] Last: Oops ya I accidentally put circumference (by giblit)
Sorting pairs of numbers using AMP
 
I need numbers next to each other to be sorted (in increasing order). On the CPU I'd do something like this: for(int i=0; i < length; i+=2) { if(a >a[i+...
[3 replies] Last: Of course. Lets say that you have N threads. Each has index from [0.... (by keskiverto)
2D Graphics
 
Hellolo! I've started with making games in C++, and it's fun as fluff. Anyways, I've only made a simple game so far. It's only triangles and stuff, so I haven...
[3 replies] Last: http://lmgtfy.com/?q=call+of+duty+modding http://lmgtfy.com/?q=CS+GO+m... (by MiiNiPaa)
splaying elements to the root..
 
I am having some difficulties splaying this element to the root.. considering i have this splay tree . 0 \ 1 \ 2 \ 3 \ ...
[1 reply] : A recursive implementation: 1. After reaching 4 you've the item to be... (by tcs)
by tmason
Multiple default constructors specified...
 
Hello, I have an inherited class that essentially manages a Qt Window. It is as follows (prototype below): class QTMyOpenGLWindow : public QWindow, ...
[3 replies] Last: You misunderstand. If you don't specify any arguments when constructin... (by Duthomhas)
Binary file exemple
 
// Ce programme lit séquentiellement un fichier à accès direct, // met à jour des données déjà écrites dans le fichier, crée // de nouvelles donné...
[no replies]
Having issue with PrintDialog Sending All Pages to Printer
 
I'm not new to C++ programming but I'm not an expert either. I'm using Borland C++ builder 5. I know it's extremely antiquated, but I have no choice right now...
[1 reply] : The issue turned about to be something with the TQuery supplying data ... (by wltscollins)
Need help with a program
 
The professor at my college has once again assigned something he did not teach to us. If he did we couldn't understand him or read his handwriting as he is new ...
[3 replies] Last: Note: The use of code tags is strongly recommended. Your class has no... (by keskiverto)
I dont seem to understand my errors
 
So i am implementing the class LinkedBinaryTree and i am aplying "Depth and Height" and "A linked structure for binary tree". I will post my code and I am hopin...
[4 replies] Last: error: ' PositionIterator ' was not declared in this scope PositionI... (by kbw)
December 2014 Pages: 1... 89101112... 31
  Archived months: [nov2014] [jan2015]

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