General C++ Programming (Page 2)

Theater Seating c++ error
 
In the following code, when I would select View Menu Prices, Purchase Tickets, and Sales Statistics ...
[1 reply] : int price ; is local variable in every function. When you ask user f... (by Konstantin2)
Calendar Help (need to combine my code into a single function)
 
The assignment reads "Write a void function named displayCalendarDays. This function is passed two ...
[1 reply] : void disp(const int startDay, const int days) { if (startDay < 0 |... (by Konstantin2)
by RotciV
Kth largest array
 
So I'm trying to make a function that prints out the kth largest number in the array but its not wor...
[1 reply] : You should actually explain how your function works rather than leavin... (by Smac89)
Prompt the user for two years. Print all Comedy movies that were released between those two years.
 
it is printing out all of the movies. i have a hard time printing out all comedy movies. please hel...
[no replies]
Magic Square
 
My knowledge about C++ is very limited, just keep modifying the source code from internet to fix th...
[no replies]
ncurses help on Mac OS X Xcode
 
I'm currently a beginner C++ programmer. Recently, I found ncurses and thought I'd give it a shot an...
[1 reply] : http://www.cplusplus.com/forum/general/113904/#msg622055 From your lin... (by ne555)
typedef template with static const member
 
Hi, class Tracker { public: static const int type; typedef cv_types::CvTy...
[1 reply] : nvm, it works when I put the initialization into the class: class T... (by meleagrosy)
Using Overloaded [] with Overloaded =
 
Hey, I am trying to write a statement in my program like this: c = value where c is a...
[1 reply] : Make another, non-const variant of operator which will return value b... (by MiiNiPaa)
Basic Exercise
 
I am trying to come up with code that prompts a user to input three numbers (integers). The program ...
[7 replies] Last: its "manual sort" without looping e.g. for two variables: cin>> a; c... (by anup30)
Error in minHeap Implementation for C++
 
this is a beginner work and I'd like te have a heap which contains any item inserted by me. However,...
[1 reply] : The error is most likely with this line: [code firstline=38] if (heap ... (by Smac89)
Reading from txt file into vector then sorting numerically.
 
03 Ribena 7 2.20 17 Coffee 76 1.50 24 Tea 21 1.10 39 Sprite 3 1.70 56 Cola 18 1.7...
[no replies]
by coder1
Competitive Programming
 
Hello, what are the fields of work in computer science that are most related to competitive programm...
[2 replies] Last: I mean something like ACM-ICPC and IOI (by coder1)
Confusing error in pointer program
 
Hello, everyone! I'm new here and I'm hoping for some help. I'm in a C++ programming class and my pr...
[7 replies] Last: I'm not sure how exactly to update the size at the end of the functio... (by dhayden)
I need help with my project
 
(Author: Ramin Melikov) I wrote the class file, the definitions file, and the main program file, ...
[1 reply] : Here is the project requirement: Design and create a class called Com... (by cageybee)
Delete Node Error
 
Hi there.. I'm having much trouble in my following program Delete function is not working properly ...
[1 reply] : Your Search() function is wrong too. You're setting flag=false if ... (by dhayden)
by dkaip
operator += problem...
 
Why gives me 4 and not 10? Any idea why is that? struct a { int i; a() {}; a(int ii) ...
[8 replies] Last: Thank you very mutch. Worka fine ... (by dkaip)
by yoga79
Read data file
 
Hallo all.. I am a beginner in C++ program...I want to ask you, if i have a data,how to write the c...
[no replies]
how do I print a vector in increments of 7?
 
I am trying to print out a vector in increments of 7 following a string pattern match. I am able to...
[no replies]
extern and global classes?
 
I'm not sure where I'm going wrong here. If I have created a class (Class A) which I have declared ...
[3 replies] Last: but one of my class pointers I had not allocated space for in memory ... (by MiiNiPaa)
Question about Boost.Asio
 
As I was reading the documentation and I noticed that you can only send data that is continuously al...
[3 replies] Last: @MiiNiPaa @JLBorges Thank you so much! (by benbalach)
Pages: 1234... 64
  Archived months: [sep2014]

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