General C++ Programming - September 2015 (Page 7)

by LB
Template template parameters and weird errors
 
I'm trying to make a template function that can work with std::unique_ptr , std::shared_ptr , or any other kind of templated smart pointer, as well as a class...
[5 replies] Last: Thanks! (by LB)
Array
 
Can someone help me? This is the problem (sorry) Just a beginner and still learning more. Complete the program below by defining the functions called with...
[1 reply] : To be honest you're probably best off going through some tutorials on ... (by mutexe)
Math Quiz Program
 
I have the Pseudocode for this program, but I need help converting it into actual code... Function main get first number get second number Call Prin...
[1 reply] : Which bits are specifically causing you problems? I mean, presumably ... (by MikeyBoy)
Abstract Class Problems
 
Hey guys, need some help. I'm new to the concept of abstract classes, and am getting the error 'lvalue require as left operand.." I can't seem to figure ou...
[10 replies] Last: Just make the member variables protected and use them directly. So why... (by coder777)
How can i make the border appear one by one?
 
My border appear automatic complete but my professor want that it should appear one by one? How can I do that? Here is my code: #include <iostream> int ma...
[2 replies] Last: I'm thinking what @OP wants is maybe take an empty character input, li... (by YFGHNG)
Please help me in my homework in array
 
Write one complete program to complete the following requirements. Assume the following array declaration int A , int B int C ; 1. input array b complete...
[1 reply] : What coding do you have so far? We are not going to do everything for ... (by Radar)
Someone, Anyone please help me with one of the Questions for my hw!
 
the questions is : Display name and average age of the 3 students using object oriented program. Use get line and set classes
[4 replies] Last: 1. design a student class - name and age 2. in main create 3 students ... (by closed account 48T7M4Gy)
How to Multiply two HUGE Binary Numbers
 
I'm really confused on how to multiply huge binary numbers.. So I'm storing both of my binary numbers as vectors<int> . Per the assignment we can not use any ki...
[5 replies] Last: The pseudocode is actually spot-on. The hard stuff is actually in th... (by Duthomhas)
Help with an assignment
 
How would you complete this : (this assignment was already turned in) #include <iostream> #include <iomanip> // if / else 3.6 page 73 // while 3.7 page ...
[2 replies] Last: Well, as stated before I already have done this assignment but the are... (by ProjectAnsem)
Vector String Output
 
I need help understanding vectors. I have a huge problem understanding the concept. I need help on how to output a selected amendment when the user inputs the n...
[1 reply] : It would be the same syntax as with an array, use the index operat... (by LB)
by mkb555
Caesar Cipher decryption
 
I need to write a program that decrypts an array of strings. It has to do other things too, but I want to get this part working first. I don't have to check for...
[18 replies] Last: mkb555, can you post the solution so I can actually learn my mistakes (by reaper007)
Excel Anyone?
 
HI everyone. How would you go about IF statements in Excel w/C++?
[2 replies] Last: Thanks SO MUCH I owe you one! (by genellewhite)
Reading from file
 
I have to read the first two lines of a file and discard them, so the second line in the file contains an integer which is the size of the file. I need to i...
[3 replies] Last: If you have file "text.txt" at the same place where you .cpp file it s... (by MarekG)
set::find non-existing candidate, stuck the code?
 
I was trying to use the set::find and set::erase function for a customized struct type. To test the situation where it is asked to find and erase a non existing...
[2 replies] Last: Great! Thank you so much for your perfect instant reply! (by chang52)
RNG doubles, custom looking for feedback
 
So I am making a good generator class that uses a xorshift64* generation seeded by a xorshift+. Well I made functions to return various number types and othe...
[18 replies] Last: So decimal point, just slightly a misnomer as not all number systems a... (by DarkLightHitomi)
Where to store constant static values
 
Hello, I am working on a game where I want to have shop items. I want these values to be accessible to any class I want to include them in without making a ne...
[no replies]
help me. Im new. Write cpp
 
COSC 1436 Lab Chapter 4 Here we will be taking data in as a file. Note that the sample file provided here is not the file that I will use to grade your assig...
[1 reply] : I try this one but not really work. #include <iostream> #include <fst... (by xlaws4boy)
by leetgb
dfsfsdf
 
sfsfsdf
[2 replies] Last: Please, do not delete your messages. Original message: [quote=leetgb]... (by MiiNiPaa)
by VijayC
Calling REST api from C++
 
Hello All, I want to call REST api from C++ code. I am trying to use casablanca library, However while compiling and linking, I am getting following linking ...
[1 reply] : You either link against the wrong library or not at all. (by coder777)
Put back numbers into input buffer
 
Suppose a character is called and checked and required to be checked in other function. If I put back that character back into buffer it is good or I should cre...
[3 replies] Last: what about if everything in the stream is taken as character Streams ... (by MiiNiPaa)
September 2015 Pages: 1... 56789... 21
  Archived months: [aug2015] [oct2015]

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