General C++ Programming - October 2017 (Page 4)

by tmnt
Void Function
 
Hello all!! Ive tried completing this problem but Im not sure how to use the void function. Also Iv...
[3 replies] Last: OK. Now look at what you've actually written. Can you tell me under ... (by MikeyBoy)
std::map and std::vector containers
 
Hello all, The container std::vector uses an array and for searching it starts from the beginning...
[7 replies] Last: And what should be under operator () ? Wait a minute, HArray with 8 th... (by HArray)
by plexus
Good examples for ? :
 
I'm helping a friend to learn C++. But when it comes to the ?: operator, he's like "what do I need ...
[4 replies] Last: The fundamental difference is that the if-else statement is not an ... (by JLBorges)
How to store/call an object through a variable?
 
Hello! I am trying to write a Pokemon Battle program, where I am having trouble. I am trying to get ...
[4 replies] Last: Oops, sorry! (by Ninjacop)
by helios
Fast float type
 
Is there an analog to std::int_fastN_t for float? E.g. float_fast32_t. It doesn't have to be in std,...
[7 replies] Last: Yeah, I've done fixed point arithmetic in the past. It's really fast, ... (by helios)
Publish/Subscribe Implementation - opinions
 
I have taken a look at an example published by makomweb on gist. I have taken the liberty to add som...
[no replies]
I am a beginner in c++ and am pretty horrible please help me ;(
 
Write your question here. I am completely lost on how to create the loop for this program, its home...
[1 reply] : Here is an idea how those loops may work: //Note: initialiize variable... (by coder777)
Objects with Constructors
 
Question : WAP to create class Date having three private data members (day, month, year). Class s...
[1 reply] : What exactly should the function int days(Date d) do? Should it calcu... (by Chervil)
Can you solve this problem using C++? (1,2)
 
Greetings fellow programmers. I would like to share a problem with you. There is a 7x8 grid that has...
[25 replies] Last: Ooh! Fun! #include <iostream> #include <algorithm> int map = { 5... (by helios)
Void Recursion
 
Hi fellas, could somebody answer how can i END a void recursion? I said END, not return to the previ...
[7 replies] Last: Oh, I get it. The OP is asking to jump all the way through the stack b... (by Repeater)
Sentinel Loop Help
 
Hello, I'm not looking for you to write the code for me, I'm just looking to be pointed in the right...
[1 reply] : It's a simple problem. I think you can handle it if you make a little ... (by IvanJobs)
Arrays of object doubt
 
Question : 2. Declare a class named ‘StudentRec’ with three private members: ‘enrolNo’ of ty...
[5 replies] Last: Yes, static has been done. Understood. There can be 2 solutions 1. Cr... (by abcdef123)
help with void function
 
Im doing this question for a class and im really confused on what im doing wrong can someone look ov...
[1 reply] : The compiler says: In function 'int main()': 37:45: error: 'GetTotal... (by TheIdeasMan)
Help with pi using classes
 
I am having trouble getting pi to output to the user by adding together my fractions that I have cre...
[8 replies] Last: Sweet I have the program working how I want it to. Thank you so much f... (by CHancock)
by sezo
assignment output issues (chessboard)
 
This is the assignment http://venus.cs.qc.edu/~waxman/211/fancy%20print%20chessboard%20assignment%20...
[no replies]
How to do time complexity table for binary search? (recursive and non-recursive)
 
Ok so I have to make a time analysis table for both of my binary search algorithms in my program. On...
[3 replies] Last: big-o does not generally use constants. no one cares if its log or l... (by jonnin)
callback function plz simplify
 
Hi, I am having some "stuckness" on the idea of a function, of the "callback type", as it differs...
[4 replies] Last: It is kind of like vectors (which are NOT vectors, in terms of physi... (by technologist)
by HArray
Fastest associative array on C++ (Trie) - Part2
 
Hi All, First part of the article you can find here http://www.cplusplus.com/forum/general/208418/...
[4 replies] Last: See: https://isocpp.org/std/submit-a-proposal Submitting it to boos... (by HArray)
Understanding the linker error LNK2019
 
I have recently starting working with visual studio c++ and I am getting LNK2019 error. I understand...
[4 replies] Last: It's been several years since I've worked with Qt, but I remember that... (by MikeyBoy)
If Else Statement Help
 
Prompt for and read a single upper-case element symbol into char variable sym. Print the correspond...
[5 replies] Last: Thank you so much!:) #include <conio.h> // For function getch() #inc... (by MisterBren)
October 2017 Pages: 123456... 17
  Archived months: [sep2017] [nov2017]

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