General C++ Programming (Page 36)

ifstream cannot locate file
Here is the opening code I am working with: ifstream inputFile; string filename; cout << ...
[1 reply] : A few things... it depends on what program you use to write your code... (by HotShowers)
help with a linked list program based on classes
this is my Header file #include <string> using namespace std; class Employee { private: ...
[1 reply] : Declare typedef struct Emp { int person; int salary; Emp* next; } *... (by sylphsang)
by theox
Trouble with exception handling
ONCE I WIN OR LOSE THE OUTPUT OF THE BOARD GETS MESSED UP. #include <iostream> #include <stdexc...
[3 replies] Last: Thank You guys for your input I appreciate it, I was able to figure ou... (by theox)
void pointer question
Regarding void pointers, what is their usefulness? E.g. #include<iostream> int main() { ...
[5 replies] Last: Wrote a small routine using vgr926's step wise assistance: This will b... (by technologist)
Curly braces vrs parenthesis....
Hi, Given a vector: vector<complex> wc{ {1.5, -2}, {3.4}, {2.6, 5.13} }; If i call the co...
[no replies]
Using Constructors to compare/calc user input
We have this assignment form out teacher, a which is a bit confusing towards the end. "Define a clas...
[no replies]
How do I extract a single digit from a 3 digit whole number?
This isn't a homework question, I'm just curious. If I had a program that calculated a 3 digit numbe...
[3 replies] Last: int num = 123; int firstDigit = num/100; int lastTwoDigits = num%100;... (by dhayden)
including multiple user defined headers leads to a problem
Hello, I have recently "got back" to program in C++ after a long period, and i have been dealing wi...
[16 replies] Last: When do they start their live? When do they die? What memory area do t... (by keskiverto)
C++ code
Write a program that will input the number of wins and losses that a baseball team acq...
[2 replies] Last: num 22 line delete int (by hjx1120)
Help with Functions and Data Types?
In this program, I had to create a talent show scoring system. The contest has five judges, each of ...
[6 replies] Last: Maybe I'll have to add an if statement somewhere? For example: ... (by raiiiny)
What is the point of declaring a class variable in a class?
I see this sometimes and it confuses me as to why people are doing it? struct things { private:...
[2 replies] Last: I think you are actually asking about nested classes. Let's say you h... (by doug4)
Linked List with only Tail
Hello, I'm trying to create circular Linked List, and I'm only allowed to use Tail pointer - no hea...
[5 replies] Last: Thanks for your help. Managed to get it working. void Queue::enqueu... (by rorschach14)
help with using structures
need help with this code
[1 reply] : We're not just going to write your homework for you. If you show us w... (by MikeyBoy)
by ketnav
Debug assertion failed (Buffer too small)
Hi, I wrote a code...I had to use "strcpy_s" in it...the program is compiling but I'm getting debug ...
[2 replies] Last: Why do you use plain arrays and strcpy_s in a C++ program? The C++ sta... (by keskiverto)
how to check if the vector index
if i have 4 vector vector<string>player_0; vector<string>player_1={"DA","DK","HJ","H2","H3","...
[2 replies] Last: Or even a vector of vectors: std::vector<std::vector<std::string>> p... (by MikeyBoy)
Function that returns a reference, a pointer, or a reference to a pointer?
I'm having issues with my functions that return both a reference and a pointer and reference pointer...
[8 replies] Last: Pointer is a variable that stores a value, just like any variable. Th... (by rabster)
I don't understand how ampersands work in reference parameters?
I don't understand why my last 3 outputs are like that when I put the ampersand. Can someone make s...
[1 reply] : The last 3 outputs are like that due to the fact you are taking in wor... (by rabster)
Compiler Errors - Function Calls
I have a class and a class (which includes the header implementation, not allowe...
[1 reply] : flist.push_back( Passenger(fname, lname, destination) ); (by ne555)
I need help with a simple C++ encryption transposition Cipher program please?
The user key (word) is entered and I want to use that to encrypt the message. The message is encrypt...
[3 replies] Last: just google sreach ________________________ Sogold acc - http://www.d... (by sogold)
by ketnav
Object oriented Function call
Hi I have a small problem, I've a code for "caesar cipher" which is functioning properly in c++ (no ...
[1 reply] : Please help needed guys...It's a bit urgent (by ketnav)
Pages: 1... 343536373839
  Archived months: [mar2016]

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