General C++ Programming - April 2017 (Page 2)

extra credit C++
 
teacher program notes: Create a UML diagram for the following class and then create the following class and demo program. Submit the UML diagram, the class f...
[1 reply] : changed a few things: // header file #ifndef PAY_H #define PAY_H ... (by kohl5555)
test scores #1
 
book question: Write a program that dynamically allocates an array large enough to hold a user-defined number of test scores. Once all the scores are entered,...
[3 replies] Last: you don't have to change to a bubble sort, but me and the teacher coul... (by kohl5555)
by Mite
Automated Emails...
 
Hi everyone... is there any c++ program in c++ that can self generate emails?? And if it is there can you please tell me how to do it? Thank You
[1 reply] : https://www.example-code.com/vcpp/smtp_simpleSend.asp http://stackover... (by Thomas1965)
URGENT!!
 
This is a question from math. Is -lnx + lny = lny - lnx ?
[9 replies] Last: programming is math no, it's not. If it were, it'd be called math, ... (by gunnerfunner)
by Kalcor
Concept behind this?
 
Being a nonconformist, Volodya is displeased with the current state of things, particularly with the order of natural numbers (natural number is positive integ...
[1 reply] : In the sequence, odd numbers precede the even numbers; there are n num... (by lastchance)
Breadth First Search on Directed Graph output problem
 
I am currently having a problem with my output for my BFSTraveral for a program where I take an adjacency matrix to make a directed graph. using namespace s...
[6 replies] Last: thanks max, now it's clear (by gunnerfunner)
file input
 
1)number of integer inputs from a file and store them in a vector ifstream inputFile("xxx.txt"); if (inputFile) { double value; while ( i...
[2 replies] Last: Here my full code. #include<iostream> #include<fstream> #include<st... (by mary9734)
HELP SOMEONE IN NEED PLEASE
 
I need help with my assignment i am new to programming and my teacher gives me c++ to learn and create a program on. This is what i need to do, if someone can...
[no replies]
by arbwok
Help with unordered_map insert and pair
 
I'm having trouble with unordered_map pair and insert. Below is my code with my problem. Header public: /** * Insert item x into the priority q...
[5 replies] Last: Despite the name, this doesn't look much like a priority queue. What ... (by cire)
PLEASE CAN SOMEBODY HELP ME WITH THIS PROGRAM?
 
Your task is to write a program to convert the data in lane9.txt to a frame score format from Bowling. Write a function CleanFile to rewrite lane9.txt to cle...
[4 replies] Last: I am expecting for somebody to explain my task because I am a beginner... (by kledis23)
by bronc
single stepping
 
When I single step using F11 it unfortunately jumps into the iostream when i single step cout for example. Then I need to Step Out etc. Is there an option to s...
[2 replies] Last: v helpful. thanks a lot. (by bronc)
by Kalcor
Greedy algorithm
 
Hello I just encountered this problem that I solved but I wanted to check if I used the correct algorithm (My approach to the solution was right but I wanna kno...
[no replies]
Extract integers from a string
 
Hello everyone! I am trying to extract some integers from a string, already written or written by the user, in which there is a character between two numbers. T...
[4 replies] Last: Perfect, it works! Thank you all!! Have a nice day :D (by s222571)
stacks and function calls in C++
 
I just learned about stacks, call stack(function calls), and main memory execution. Function calls and variable declarations go on top of each other in stack. ...
[1 reply] : When it comes to the execution process, does the main memory starts f... (by mbozzi)
I have no idea how to make a code out of this scenario for C++?
 
How the program should work : When the cinema sales staff start the program they will be asked to enter their staff name, the date and which of two films ...
[4 replies] Last: The little code snippet you've posted has too many errors to go throug... (by gunnerfunner)
Help getting maximum and minimum from .txt file list
 
Hello, first time posting here. Have some experience programming but relatively new. I have this program that takes a list of numbers from a .txt file and find...
[3 replies] Last: Perhaps also worth mentioning the algorithm std::minmax_element to fin... (by gunnerfunner)
Header and Source File errors
 
I'm struggling to understand where I'm going wrong, I guess I don't fully understand the concept of needing a header and a source file (why don't the just put t...
[8 replies] Last: Thanks so much everyone for your help and advice! I've got it working,... (by Airynoob72)
by faeory
restaurant system
 
Hi, im having problems in programming a restaurant system with 3 types of employees; waiter,chef,& cashier. the waiter should start first by asking the costumer...
[3 replies] Last: A queue works just fine; making it global may not be the best thing to... (by Little Captain)
Dynamic Allocation
 
Lab Assignment #8 Assignments: 1. Add a manual selection that interfaces with the user to your program. Add a user selection menu at the beginning of ...
[1 reply] : Hi, Do you need help understanding this assignment..? Please be sure ... (by Little Captain)
by hades
How to store strings into an array to later be called back...
 
I'm trying to store strings into an array of strings (string myArray ) and want to have them be called later in my program. For some reason when I try to call...
[7 replies] Last: you can try this if you wish but use <iomanip> to align the columns as... (by gunnerfunner)
April 2017 Pages: 1234... 16
  Archived months: [mar2017] [may2017]

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