General C++ Programming - November 2012 (Page 35)

by noo1
my output text file grows uncontrollably
 
Can anyone tell me why/how I'm messing up this simple code? It reads a text file and outputs what it read to a new text file. (it's supposed to anyways) I...
[7 replies] Last: THANK YOU SOOOO MUCH!!! Here's my pretty new code. I really love lea... (by noo1)
SFML Networking issue
 
The program should run as follows: Client sends a message to the server, server then sends that message to all clients. Right now, the server wont send any mess...
[no replies]
How do I calculate the mean for this C++ program?
 
Define a getMean() function with the specification and prototype shown below: // Return the sum of all scores divided by the number of scores. // This kno...
[2 replies] Last: I don't understand your correct output results. Maybe lack of neccessa... (by Imadatobanisa)
Fastest way to output
 
Hi, I have a function which returns a 2d array. I want to print this 2d array out into a file (on one line). I can obviously loop through and print with an o...
[2 replies] Last: A while ago I was playing with "the game of life" http://en.wikipedia.... (by Chervil)
How to printf character whose decimal is above 127
 
I am trying to printf a character from a file whose byte value in hex is CC. it is printing 'ffffffCC' I am expecting 'CC" only. how can I printf a anything abo...
[8 replies] Last: I learn something everyday, I will go and trace it one instruction at ... (by mendozae)
Optimized return value
 
There has been lots of discussion and compiler experiments with optimizing the return value from a C++ function, specifically to reduce the number of copy const...
[4 replies] Last: to instruct the compiler to elide the copy constructor You do that ... (by Cubbi)
Simple problem but cant seem to fix
 
here's my code: #include "stdafx.h" #include <iostream> #include <string> using namespace std; class PatientAccount { private: int days; fl...
[3 replies] Last: I found the problem, i also had to make the void function take and pas... (by Reaper1)
Dynamically Allocated Errors!
 
Hey, I was working with a few of my programs using dynamically allocated arrays and they never seem to leave me alone. I even deleted Them when I was done us...
[1 reply] : I'd normally recommend Memtest86, but Windows 7 already has a memory t... (by Catfish2)
Help on comparing two vectors
 
#include<iostream> #include<fstream> #include<string> #include<vector> #include<algorithm> #include<iterator> #include<cctype> #include<sstream> using...
[2 replies] Last: If you're getting "core dumped", you are supposed to load that core in... (by Cubbi)
Vector unincrementable.
 
I think this has something to do with a problem I had before with pointers but I can't figure it out. On Space: void entity_Bizzle::onKeySpace() { ...
[7 replies] Last: virtual void onKeySpace() { for(e_it=entities.begin(); e_it<ent... (by cire)
program construction help
 
hi all, I need help doing this program. {a C++ program that generates all the possible representations of N cents in the typical American coins: quarters (25 ...
[5 replies] Last: This seems hard. I'll come back tommorow, with a proper and correct re... (by Imadatobanisa)
Special Matrix, why doesnt work?? Please somebody help
 
Write a C program that prepares an m×n matrix of integers whose first line contains integers from 1 to n, second line contains squares of the first line, thir...
[9 replies] Last: #include<stdio.h> //Only Power() is changed int Power(int j, int i,... (by Imadatobanisa)
Need some advice to write binary numbers program...Please
 
Below is the output I need: COMMAND Operand #1 Operand #2 Shift Result ---------------------------------------------------------- NOT 11...
[2 replies] Last: I saw another question on a similar topic recently, and looked at how ... (by Chervil)
Updating existing deque structure element
 
Hi all I want to update the existing struct deque element without affecting anything else. here is my initialization .. typedef struct maze { in...
[1 reply] : If you know the index of the element then you can use it to access thi... (by vlad from moscow)
Pointer help
 
Hi... I'm trying doing a exercise. This (strange) exercise's called "A pointer data manager class". also called "Unusual exercise" in my opinion. Generally...
[2 replies] Last: @Jackson Marie (26) Thanks you. But, I don't understand your algorithm... (by closed account E079216C)
Need quick Help regarding my program here
 
Hello, Can anyone do this program in C++: Write a program that will help you find the total cost for all of your items including 8% sales tax. To use the pro...
[3 replies] Last: are you available on gtalk ? Please tell. (by sachincoder)
Can I determine the number of member of a Structure?
 
This is part of my UCSD homework. If anybody does not feel answering it, I am OK with it. If I have a bunch of structures each with different amount of membe...
[10 replies] Last: It appears I do not have any choice, but I have to look inside the str... (by mendozae)
How do I get the last number isolated out of a count variable?
 
I've been working on this program to get input letters to repeat certain amounts of ones and I want to get amounts of one repeats to add up. I'm not exactly get...
[14 replies] Last: I took this project a whole other direction with strings. Now all I go... (by Quantum7)
Help With boolean functions & return values
 
This is the prompt: "Your Target Heart Rate is the rate at which your heart should beat to get the maximum benefit from aerobic exercise. This rate is generally...
[3 replies] Last: Oh wow, how did I miss that. Thank you cire & kbw. (by someWeirdGuy)
Component reliability
 
I am working on the same question as another member posted here, but I am going about it slightly differently as I see the equation differently.. I can get my ...
[1 reply] : @zblackbeast Firstly, please edit your post so it uses code tags - ... (by TheIdeasMan)
November 2012 Pages: 1... 3334353637... 51
  Archived months: [oct2012] [dec2012]

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