[try Beta version]
Not logged in

General C++ Programming - April 2016 (Page 20)

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...
Apr 5, 2016 at 9:42pm
[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...
Apr 5, 2016 at 7:32pm
[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...
Apr 5, 2016 at 7:19pm
[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...
Apr 5, 2016 at 5:38pm
[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 ...
Apr 5, 2016 at 5:33pm
[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:...
Apr 5, 2016 at 4:32pm
[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...
Apr 5, 2016 at 4:15pm
[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
Apr 5, 2016 at 11:30am
[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 ...
Apr 5, 2016 at 11:28am
[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","...
Apr 5, 2016 at 10:39am
[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...
Apr 5, 2016 at 8:18am
[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...
Apr 5, 2016 at 7:35am
[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 main.cc class and a database.cc class (which includes the header implementation, not allowe...
Apr 5, 2016 at 5:49am
[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...
Apr 5, 2016 at 4:51am
[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 ...
Apr 5, 2016 at 12:56am
[1 reply] : Please help needed guys...It's a bit urgent (by ketnav)
random cards
 
this is my function to generate random cards. string facevalue = { "DA","DK","DQ","DJ","D2","D3",...
Apr 4, 2016 at 10:51pm
[5 replies] Last: http://www.cplusplus.com/reference/algorithm/shuffle/ (by keskiverto)
how to reverse texts using/without using functions
 
The second part(where I don't make use of a function) works, the first part... #include <iostream...
Apr 4, 2016 at 9:14pm
[1 reply] : First, void reverse(int x,int y,char z) should be changed to void r... (by skaa)
Problem with my Array
 
Hi everbody, I wanted to know, I made a little program that pick a word from a text file than pass t...
Apr 4, 2016 at 8:49pm
[5 replies] Last: Thanks by the way it worked pretty well!! (by jj09786)
Function Program Help
 
I was instructed to create a program that finds the winner of a talent contest. The contest has five...
Apr 4, 2016 at 8:30pm
[2 replies] Last: An array would be helpful, but sadly I am not allowed to use an array ... (by raiiiny)
by ketnav
Online compiler for object oriented c++
 
Hi, I wanted to know if there is any compiler online to test my object oriented program...For exa...
Apr 4, 2016 at 7:42pm
[1 reply] : All C++ code can be in one file. "Object oriented" does not substanti... (by keskiverto)
April 2016 Pages: 1... 181920212223
  Archived months: [mar2016] [may2016]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.