General C++ Programming - July 2014 (Page 17)

Problem in classes
 
Hey i am making a multiple quiz program. so everything is working fine, except for the part where ...
[1 reply] : > so everything is working fine, except for the part where i'm trying ... (by ne555)
C++ Map storing multiple data types
 
Dear C++ Users, I am trying to create a generic map container which shell contain data of differe...
[4 replies] Last: No, I wanted to prevent dynamic_casts. Casting in general I want to be... (by weissric)
Calculate Standard Deviation in C++?
 
I have a program that will calculate max, average, etc from a file of numbers. However, I cannot get...
[4 replies] Last: - read your numbers into an array (A) - calculate the average (B) - it... (by mutexe)
I need help (exceptions: throw, try, catch)
 
#include <iostream> // For cin, cout, endl, etc. #include <iomanip> // Output formatting #inc...
[2 replies] Last: You have the right idea with your badHour and badSeconds functions, ho... (by AbstractionAnon)
problem with 'ostream'
 
Hello everyone, i'm trying to overload operator<< for a class Complexe so i tried this; ostream&...
[2 replies] Last: Thank u soo much, it worked. (by whiteReve)
class with header
 
this is a small program..but get so many errors...please anybody help me. //person.h class pers...
[2 replies] Last: //person.cpp lines 15 and 21, remove the semicolon ; at the end of th... (by wildblue)
If statments
 
Hi, I am into my 2nd week of my computer programming class and my professor assigned us a lab. It...
[1 reply] : For your input, what are you storing it in? The easiest would be if yo... (by TwilightSpectre)
clearing cin buffer
 
I am having some issue with clearing cin buffer. The following code does not wait for me to see the ...
[3 replies] Last: Thanks Duoas and ne555, that was helpful. (by funprogrammer)
infinite loop
 
cout<<"Please enter the number of disks <max 9>: "; cin >>d; while (d < 0 || d >= 10){ cout<<"Po...
[3 replies] Last: Thank you so much Smac89! (by Stephanie)
HELP with functions in my program
 
This is my assignment: •Before reading the scores in and displaying, print a header (example is...
[2 replies] Last: Yes that is exactly what I need. Thank you for the input. Its just set... (by howellj8)
Converting SYSTEMTIME to time_t?
 
I am having trouble converting SYSTEMTIME to time_t Can anyone help me with this situation please...
[10 replies] Last: thanks (by danielmccarthy)
Should I delete every node in the linked list?
 
Hi again, Still toying with my self-coded linked list class and now another question: should I de...
[4 replies] Last: Fair enough. The point is, make sure your code closes cleanly :) (by ResidentBiscuit)
Recursive to Iterative
 
map< int, int > cache; int count( int n ){ if( cache != 0 ){ return cache ; } ...
[7 replies] Last: > I cannot use recursive b/c the stack would be to deep and causes SEG... (by ne555)
difficulty with converting numbers
 
I've thrown together the code in my latest post, which is the program for this assignment: In t...
[7 replies] Last: Modding and dividing by 2 is for converting decimal to binary. It a... (by wildblue)
How to overload the [] operator twice?
 
Hello guys, Here's my question. I'm coding a basic Linked List class (for the purpose of understa...
[3 replies] Last: Wow, that's really cool! Thank you, Peter87! It didn't, because I did... (by alekscooper)
Undesired output in program
 
I am trying to create a program which will output all possibilities of a set of variables (number of...
[no replies]
Function works when passed string literal, but not a variable
 
I'm making a .json loader for a project that I'm working on, and to simplify things, I decided to ma...
[3 replies] Last: Thanks Peter87, I changed the const char* s to std::string s, and it... (by FalterrisAunvre)
c++ game programming
 
I want to make games in c++ but do not know what is the best option is. I am using code::Blocks on w...
[18 replies] Last: I had to do a couple other things first but that did help Thank you f... (by Tyler151)
by q139
How to delay part of code
 
for example i have int count = t1; while(count>counter){ Sleep(delay); Int32::TryParse(textB...
[8 replies] Last: You make it sound like learning a GUI library is this big endeavor, u... (by closed account 10X9216C)
getting the day of the week
 
Hello all just started an account. I have a fun question that is an end of an inherited class. I am ...
[2 replies] Last: // And this? i'm guessing month in that library is zero-based. I kn... (by mutexe)
July 2014 Pages: 1... 1516171819... 26
  Archived months: [jun2014] [aug2014]

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