General C++ Programming - April 2012 (Page 29)

by BotHH
Sum of an Array problem
 
Hi everyone, first post here but I've been lurking for a lot longer I just can't find an answer through searching for this. I've got to sum the values of the ar...
[11 replies] Last: That means 2.99712 x 10 9 . Basically the computer version of scientif... (by LB)
Error is giving the following code while printing the content of vector of structure
 
When I try to print the content of vector of structure of variant of vector the following big unbelievable error even it is very simple. #include<iostre...
[7 replies] Last: @Pravesh Koirala - Yes exactly. (by clanmjc)
by Deran
Composite class problem
 
Hey! My current project is divided up into four classes that manage different areas of the program. These classes have grown very large and I want to split t...
[2 replies] Last: If the four classes you have need to know about each other at all time... (by LB)
use of delete (class)
 
Having issues using a delete in another function to clear my new or anyone have any suggestions to just get rid of the use of new. // Generate puppys fo...
[3 replies] Last: Try making a constructor and using a reference: class CTBoneStake { pu... (by LB)
lightbulb moment please: for overloaded function prototype
 
Need advice on overloaded function headers...I have an error message that reads "overloaded function not found".. in my class definition file. How do I write th...
[1 reply] :                 RationalNumber operator* (RationalNum... (by LB)
by gws923
Updating members of std::list
 
Hello all, I have a PointManager class which inserts Points (another class) into an std::list. Point insertion works just fine. However, these "Points" conta...
[2 replies] Last: Interesting. The problem must be somewhere else. Right now it's just... (by gws923)
by dij
Class member Boost multiThreading recursion
 
Hi everybody, I have the following situation: This code compiling and runing Ok: #include <iostream> class ScanFolderTree { public: void ScanFolder...
[no replies]
by Krome
'Native' Program in Visual vs gcc
 
My background: I am a new programmer, taking an "intro to programming II" class (as in white board and desks in a classroom, not definition & implementation), a...
[4 replies] Last: Thanks for the help everyone :) The code under the while loop was mea... (by Krome)
How do I generate spaces into blank chars
 
#include <iostream> #include <fstream> #include <string> using namespace std; int main() { string my_string; cout << "This program allows you to store dat...
[3 replies] Last: Alright thanks for all of the help! (by smurf12125)
C++ program for avg ship capacity.
 
Hello all, I have written a C++ program containing arrays, loops, and all other beginner material and am have trouble getting my "getAvgCapacity" function to o...
[1 reply] : You never initialized totalcapacity. Also, you don't want to do the c... (by doug4)
Thread priorities and Debugging
 
Hello, I wrote a program to access 2 cameras, using 5 threads: 1 main Thread, 2 threads to transmit the images from the cameras through usb 2 threads to proces...
[no replies]
Help with inFiles & outFiles
 
I'm so close to finishing this program. Please offer your assistance, if you are skilled. ^_^ Here is the Question/Problem I am attempting to solve. "...
[9 replies] Last: Put a break point @ while ((inFile >> id)) verify you are reading th... (by clanmjc)
by shaggy
RPG and <ctime> issue
 
Hello i decided to make a small text base rpg game, but i might add a GUI with SDL when im done. It is based on real life and nothing is unrealistic in it. I wa...
[no replies]
Calling for minimum among arrays
 
Hey guys, I have a program where I need to call for a minimum for each value of an array. I have no problems finding the minimum when I call for it among 2 of t...
[4 replies] Last: > I understand how min_element works ... but it had something wrong wi... (by JLBorges)
c++ calculating book age
 
Hi guys, I'm new to c++ and i cant seem to figure out a problem I'm having to calculate the ages of multiple books given in a text file (Title, Author, year of ...
[2 replies] Last: I get the full book list with that code. I want that but I want to ran... (by tomatoes1program)
Seemingly simple problem I'm having...
 
I'm writing a program for my computer science lab, and the professor provided us with the header file that we were to write the source file for. However, when I...
[2 replies] Last: we can't do much without the code. (by buffbill)
File Input help
 
I am trying to make a simple input file to save as a text #include <iostream> #include <fstream> using namespace std; int main() { int m; cout << "T...
[7 replies] Last: use an if statement or a loop of some sort and just make it so it stop... (by Iamcat)
Vector resize(unsigned int n, k=0)
 
I have my resize function working if two arguments are given( resize(4,9)). However when the compiler reaches a resize with only one argument, it fails (resiz...
[12 replies] Last: lol std; (by Iamcat)
by arooj
Program Flashing and Disappearing Problem When Executed,
 
When I try to start my program without debugging, the command prompt screen flashes and disappears, and I was wondering whether there is any way to keep the scr...
[3 replies] Last: Check the post in the beginners forum for a lot of different way to co... (by Need4Sleep)
Problem with function inside forloop
 
Im having problems with using a function in a forloop. i keep getting an error saying its not declared in the scope. #include <iostream> #include <vector> #...
[2 replies] Last: damn sorry its late. ha (by oobie2142)
April 2012 Pages: 1... 2728293031... 49
  Archived months: [mar2012] [may2012]

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