General C++ Programming (Page 41)

Random value w/o repetition..pls help me..
 
I am a newbie in C++ programming. I have a project in school using c++ language. I try to make a pr...
[4 replies] Last: As an extension to keskiverto 's response: the example in the documen... (by Duoas)
can anyone tell me the program for this?
 
Write a program for the following series (using any loop) : -5 5 -4 4 -3 3 -2 2 -1 1
[3 replies] Last: just try writing it youself edit: if you need help with writing it, t... (by Little Bobby Tables)
delete[]
 
In all my classes I've been told an array does not know it's size. char* a = new char ; ...
[6 replies] Last: Heaps are usually implemented using boundary tags. A boundary tag is ... (by AbstractionAnon)
External Reference Problems
 
I am trying to create a linked list using multiple files but am getting 2 errors "main.obj : error L...
[11 replies] Last: that would probably be a setting in your ide (by Little Bobby Tables)
Dynamic Memory Question
 
I'm reading a stereo .wav file into a buffer (allocated memory). My question is in regards to: 1....
[2 replies] Last: To allocate a 2d array and to validate you would do something like thi... (by giblit)
pls tell me the output for this
 
#include<iostream.h> #include<conio.h> void main() { clrscr (); int a ; int n,m,age; int c1=...
[10 replies] Last: [quote=AbstractionAnon]Indexes start from 0, not 1. I like to think o... (by giblit)
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 NT3)
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)
Pages: 1... 3940414243... 50
  Archived months: [jun2014]

Cannot post in this page. To post a new message, go to the first page.