General C++ Programming (Page 3)

unary operator overloading using non member non friend function
can anyone help me how to do unary operator overloading using non member non friend function?
[1 reply] : There's multiple unary operators in C++, each with different technique... (by Ganado)
by skink
Looking for valarray performance benchmarks
Valarray was supposed to be the next big thing in C++ speed, but that was years ago. I wanted to see...
[no replies]
by laedus
To curry or not to curry
Hello, Has somebody already implemented these functions ? template <typename X, typename A, typen...
[7 replies] Last: I remembered that C++17 provides std::apply , so here's a version of ... (by mbozzi)
by d0253
Rule of three memory leaks
==901== Invalid free() / delete / delete / realloc() ==901== at 0x4C3029C: operator delete(void...
[6 replies] Last: for the assignment operator use the copy-and-swap idiom Grocery& Groc... (by ne555)
Basic image processing
Hello again, I wonder if you can help me and see if I am on the right track. We have an assignme...
[15 replies] Last: Cheers, I've worked out the border thing too. (by Vostok17)
Removing punctuation from start and end of string
I would like to remove the punctuation at the start of a string and at the end. My code so far: ...
[9 replies] Last: This defaults to whitespace trimming* but you can give it a string of ... (by Grey Wolf)
TicTacToe Project
Hello, I am working on a project for my programming course and am struggling to get started. Here ar...
[1 reply] : to get started, organize the requirements by what you can do and when.... (by jonnin)
A program for determine the largest and second largest value from entered integer
#include <iostream> using namespace std; int Largest(int ArrayFill , int x); int SecondLarges...
[2 replies] Last: What should SecondLargest() do if there are two instances of the large... (by dhayden)
Add sum of rows and colums for array
I have an array that prints out, but I need to calculate the rows and columns using a for loop but u...
[10 replies] Last: If you don't initialise it to 0 then the behaviour is "undefined" and ... (by lastchance)
by Ger
segmentation fault 11
Hi im getting segmentation fault 11 if I delete the NULL pointer from a link list what would I retur...
[7 replies] Last: Are you still using the same main() program in your original post? Tha... (by dhayden)
Strange shuffle() behavior
Perhaps I just don't understand what shuffle() is supposed to do. I read the reference on this site ...
[6 replies] Last: > JLBorges, does your code create a new rng seeded with a true random ... (by JLBorges)
by alreem
if statement
HELP me please to solve this problem using if statement Write a C++ programme that reads a sequenc...
[3 replies] Last: > Enter a sequence of in integers terminated by zero > 6 -7 -8 10 -12 ... (by ne555)
[Help] Matrix with undetermined dimension
I tried to write a program which can perform matrix multiplication with undetermined dimensional mat...
[10 replies] Last: Very clean-looking and concise. I can see why people like it. (by tpb)
Validate input data from user in a Class
Im trying to make this work, main is going to be a menu with more options but to make it shorter i h...
[8 replies] Last: Thank you so much, i need it to validate numeric input but i just have... (by contredb)
by S04
Can someone help me start this program, completely new to c++ and no idea what I need to do.
Thanks to their innovative suits, human cannonballs can fly without air resistance, and thus their...
[1 reply] : You need to read and show something. See (by keskiverto)
Sharing software
Over the summer I created a program that I think some people might enjoy. I want to share it under c...
[2 replies] Last: (by Atilliar)
advice(I guess)
Hi guys, so I seen a challenge online and it looked like a challenge I could get done in 30 minut...
[8 replies] Last: I removed the constexpr, I like your program it's clean very presentab... (by adam2016)
What is the differnce b/w seekg() and seekp()?
What is the difference b/w seekg() and seekp()? Similarly what is the difference between tellg() and...
[2 replies] Last: it may be a little confusing because they cannot be different on file ... (by Cubbi)
Converting Char to Double
Hello, I am doing a project and cannot seem to wrap my brain around how to get this to work. The pro...
[4 replies] Last: is that the windows precompiled header thingy that it puts in for you?... (by jonnin)
by faiq12
Lexical Analyzer in c++
i want to read a file which in first line contains rows and in second line columns and on its basis ...
[1 reply] : it looks like you wanted a dynamic array size but you made those const... (by jonnin)
Pages: 12345... 19
  Archived months: [sep2018]

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