General C++ Programming (Page 2)

can someone please help me? how can I create a vector with the following devices: printer, disk, ...
[5 replies] Last: :) the computer is your friend not your enemy void deviceSetup (vect... (by coder777)
I'm having trouble with this, the question is listed in the code please somebody
#include <iostream> //ask the user for a set of data, product price & amount. calculate the tot...
[5 replies] Last: #include <iostream> int main( /* int argc, char** argv */ ) { us... (by JLBorges)
copy/Constructor and destructor help!
Hi, My teacher gave us this problem for homework after horribly explaining the process. Can someo...
[5 replies] Last: The correct way is: //Complex.h class Complex { public: Complex(... (by LazaroBinda)
I need to return taxes paid and net pay by pass referencing a gross pay overloaded function. Are the...
[8 replies] Last: Thanks wildblue! This forum has been very welcoming! (by Kendrakendra)
Help with C++ Word Guess Game
So I've been trying to get this word guess game working, but the word so far is not showing. For in...
[2 replies] Last: Oops, i didn't copy and paste, i just wrote it out from another progra... (by warlord42)
Building Glib on Windows XP
I'm trying to configure GLIB on windows XP using a MINGW compiler. I'm also using the MINGW command...
[5 replies] Last: Maybe some help here: (by norm b)
please help!
So I need the process to terminate for the number of processes which have arrived. but it just dies ...
[2 replies] Last: First thing i see is that you want line 20 to be ==, not =. You're doi... (by Ganado)
Algorithm to read duplicate array elements, return first duplicate value only
Hello, I'm sorry if I am asking such a dumb question but this has been annoying me for some time now...
[6 replies] Last: zoran404 You genius, I have been at this for about 1 and a half hour... (by ANewbieCplusplus)
output stream acting weird
I am trying to program a stack based linked list. Something very weird is happening with my program....
[7 replies] Last: ooooooooooh, now i see lol. Thank you guys. (by armonsafai)
Get Day of the Week Program
How can I check for an invalid date when I run the program? I am trying to enter a conditional state...
[1 reply] : For validating days and months just check if they have values from 1 t... (by zoran404)
Menu class. Need to add "Go back to previous menu"
Here is a simplified version of my Menu class, where submenus can be inserted arbitrarily deep. I n...
[3 replies] Last: Thanks JLBorges, for the idea. I was searching so hard for a design p... (by prestokeys)
#include<iostream> using namespace std; class a { public: void add() { ...
[5 replies] Last: yes i got it thanks (by sajid dayer)
by ScrubJ
Input from a file in CodeBlocks
Hi! I'm using Codeblocks 13.12 in Windows. I want to compile and run c++ files with the console inp...
[3 replies] Last: (by MiiNiPaa)
C++ gettinng Segmenation fault
I was trying the question I used vector to solve it i m gettin...
[3 replies] Last: @dhayden: B<=A The overflow in input{A,B}() is an issue @OP: /*165... (by ne555)
int* to int error?
Hey guys I keep getting an invalid int* to int conversion on lines 44, 48, and 51. Can someone tell...
[4 replies] Last: @MiiNiPaa Hey thanks. I got it to compile but for some reason it keeps... (by fl4pjacks)
by Zyxl
Learning C++ for building an application
I'm about to begin developing an application that requires some basic 3D rendering, so I'm looking i...
[no replies]
by Jweim
For Loop; totalling input values
I'm having trouble figuring out how to total the values that are put in during the loop. For this pr...
[4 replies] Last: Thank keskiverto, sometimes you stare at these things forever and miss... (by Jweim)
Need help with program
This is my assignment. Write a program to simulate a deck of 52 playing cards. Represent your d...
[2 replies] Last: Represent your deck as a 2D Array where the value in the cell is the ... (by dhayden)
help with prime numbers program
#include "stdafx.h" #include "iostream" using namespace std; int main () { int x; int i; int ...
[3 replies] Last: One error I thought of last night while going to sleep: this loop wil... (by PCrumley48)
by biba
C++ and AI planning
I have to write algorithm with c++ to optimize plan generated by satisfying planners. The main probl...
[no replies]
Pages: 1234... 58
  Archived months: [aug2014]

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