General C++ Programming (Page 14)

by NiceS
Got a logic error when reading data from a text file
 
My program is unable to take in data pass the first student and even in the first student it will on...
[1 reply] : I can't see the file. Can you post the code here? (by dhayden)
Passing character array of variable length to constructor as parameter
 
Hey all, I've been working on this code for a while and can't find where I'm going wrong. We are to ...
[5 replies] Last: Rule of three/five/zero states that copy constructor&assignment need a... (by keskiverto)
Please help me with following problem
 
I have been trying to do this practical, but the problem is I don't understand what/how am I going t...
[7 replies] Last: doh. (by jonnin)
by Hahap
C/C++ code review question asking during interview.
 
Hello Guys, Hope you are well. I am a C/C++ cross platform developer, working on Windows/Linux and M...
[1 reply] : I did well on those tests(probably answered 70% correctly) but not wel... (by jonnin)
by plexus
Proper usage of initializer
 
Hi all, here's what I have: struct foo { int i; std::vector<int> ints; }; Here's what I'm go...
[2 replies] Last: So as an alternative you might want to use: foos.push_back({3, {}});... (by plexus)
Program needs a menu.
 
Need a menu for function line 78 that will displays 1-6 options. Please help. #include <iostream> ...
[3 replies] Last: "What to do on certain input" is separate from "show menu". There are... (by keskiverto)
Synchronize only certain processors in MPI
 
Is it possible to use MPI_Barrier to synchronize only certain processors? I have all processors but ...
[5 replies] Last: I only use MPI_Barrier when debugging parallel code, to confirm whethe... (by lastchance)
Recursion Problem
 
This is the 2D array board. Hi, I am a beginner in C++ programme and I am very confused with recu...
[4 replies] Last: Ah, good. Sorry for doubting you, and I am very pleased you got it fig... (by Duthomhas)
Help writing a program! PLEASE HELPPPPP
 
You have just gained an internship at a marketing agency. You have been asked to write an algorithm ...
[4 replies] Last: Please use code tags when posting code. Edit your post, highlight the ... (by dhayden)
by t0123
helppp
 
How many natural numbers are 2 digit digits different
[4 replies] Last: thank you very much :) (by t0123)
TicTacToe vs computer
 
Im trying to code a Tictactoe game against the computer, my game works perfectly expect I can't get ...
[4 replies] Last: It looks like you still haven't taken jonnin 's advice. Reread his c... (by dhayden)
by VV9164
Sort a list based on attributes of objects
 
Hello everyone, I have started learning CPP very recently. Sorry if the question is naive. Suppose...
[4 replies] Last: Thanks for the responses. @keskiverto, your response was the closest o... (by VV9164)
Switching between players.
 
Hello. I'm writing code for what is essentially the nim game, however i cant for the life of me figu...
[4 replies] Last: Line 4,14: mode() is a typed proc. The new value of cm is returned. ... (by AbstractionAnon)
by slei
Base class function name hiding, thoughts?
 
Hey, I'm currently unsure about using base class function name hiding, do you guys consider this as...
[4 replies] Last: I don't want to read too much into your contrived example, but since i... (by doug4)
Switches And Cases Issue
 
Hello all, I am writing a program that simulates an ATM. So it tracks account balances, withdrawa...
[5 replies] Last: I was just messing with you. All the loop types can be interchanged;... (by jonnin)
by Flesh
Cannot set Precision using boost multiprecision (1,2)
 
I wrote a function using all the examples I could find on using boost, been using boost since it fir...
[28 replies] Last: [quote=MikeStgt]Now to the single case here... I'm only talking in gen... (by Grey Wolf)
by atatat
Looking for general tree implementation
 
I'm looking for well-implemented, suitable for high performance application, implementation of hiera...
[3 replies] Last: Boost does everything . ;o) (by Duthomhas)
by zeddy
help! "clang: error: linker command failed with exit code 1 (use -v to see invocation)"
 
Program: #include <iostream> using namespace std; //prototypes void DemonstrateProc1(); void De...
[1 reply] : So where are DemonstrateProc1 and DemonstrateProc2 implemented? You ha... (by AbstractionAnon)
Need Help! Sum of Even Numbers
 
#include <iostream> #include <cctype> #include <limits> int main() { std::cout << "Do you want so...
[1 reply] : even numbers have a remainder of zero when divided by 2. That can be ... (by jonnin)
Should I use global or local declaration on variables ?
 
I was wondering which is a better option to use global or local declarations when it comes to a lot ...
[8 replies] Last: globals aside, main at the top or bottom is style. I put main at the ... (by jonnin)
Pages: 1... 12131415
  Archived months: [mar2019]

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