• Forum
  • General C++ Programming

General C++ Programming

by admin
Welcome to this board!
 
Welcome to the general programming forum in C++.com! In this forum, users can to talk about any top...
[no replies]
Comaparison of char array element at specific index
 
{int counter=0; char arrar ={221,254,254,0,0,0,254,222}; for(int l=0; l<10; l++) //This loops on...
[2 replies] Last: This is a problem with signed/unsigned. See: // numeric_limits examp... (by coder777)
by elsa
how to instantiate control statement inside virtual function (1,2)
 
This program should calculate package shipping costs. The shipping company has the following discou...
[24 replies] Last: Maybe calculate the cost and discount in the constructor. Like everyth... (by kemort)
How to get compiler C++11
 
Hi all! Till now I work with compiler g++. I am a Linux user. Yesterday I found a file dealing with ...
[8 replies] Last: Basically true, but depends on distro. Most distro's have package man... (by mbozzi)
struct within a struct and struct constructor
 
i have a question about constructor here is an example struct time { int min int hour...
[2 replies] Last: Pattako: prefer member-initialization to assignment statements: http:/... (by gunnerfunner)
Linked list
 
So recent, I started to learn linked list in class and I am confused. She did a whole explanation an...
[5 replies] Last: Is that how you close it? Yep, that's the way, and thanks because it... (by kemort)
Support needed with my assignment
 
Hi, I'm doing a Business Management course & for some reason I have to complete a C++ Module which I...
[5 replies] Last: ill add to that... no one wants to work with "that guy" who cheated hi... (by jonnin)
Help with add function
 
Hello everyone, my professor gave us a project to do and I'm stuck on one of my functions He gives ...
[4 replies] Last: Everytime I run it, it keeps in looping? Instead of trying to assign... (by jlb)
What's missing?
 
I was making a program that should replace a letter or two(or more) or a phrase when you enter a re...
[2 replies] Last: #include<iostream> #include<string> using namespace std; int main() ... (by lastchance)
by ecka1
file
 
I am trying to crete a file of telephone subscribers, where you enter name ,lastname and the phone ...
[no replies]
Stack and queues without libraries
 
I have been asked to develop a stack and a queue for their main flagship OS, Windowless 9. No libr...
[1 reply] : About stacks http://www.sourcetricks.com/2008/07/c-stacks.html About ... (by Thomas1965)
by arceus
I need help with an error.
 
I don't know what I did or haven't done but this error, "no match for 'operator==' in 'std::getline...
[9 replies] Last: > May I know what the substring.empty() is for? in "if( !substring.emp... (by JLBorges)
How to print out a priority queue?
 
#include "stdafx.h" #include <queue> #include <iostream> #include <functional> #include <vector> u...
[1 reply] : I think I may have answered my own question? This seems from my point ... (by Jake123456)
Recommendation for books about Parallel programming C++
 
Can anyone recommend me good books about Parallel programming in C++? Better with examples. Thank...
[no replies]
by elsa
how to print future calendar date in C++
 
I've been looking for a way to calculate a future calendar date in C++, but so far no dice. Basical...
[3 replies] Last: std::string format_date( const std::tm& tm ) // MM-DD-YYYY { char ... (by JLBorges)
Using a Do While Loop to pull Data from a file and then run the data through a switch.
 
Guys I'm so confused on this I'm trying to read the following data from a .txt file. (file data) Th...
[8 replies] Last: This worked perfectly! Thanks guys! // Kailin Stevers // February 1... (by katiestevers)
I need help with this program.
 
I need the findCons function to return the number of consonants but it keeps giving me a weird numbe...
[9 replies] Last: I fixed it. Thank you! (by mrr6870)
Parallel computing in C++
 
I am studying threading these days and realized that it improves latency, but not performance. So...
[8 replies] Last: Do you have any recommended book for me to buy? I prefer some books wi... (by landlord1984)
by F95
Airline Reservations Help
 
Need help writing a c++ program that handles passenger reservations. Need to use a class with an...
[8 replies] Last: I'm not allowed to use vectors, instead I tried it in this manner: ... (by F95)
Pages: 123... 25
  Archived months: [dec2016]