General C++ Programming (Page 8)

Function pointers to operators
Just curious. Question within code. #include <iostream> using namespace std; struct Int{ int x; }...
[8 replies] Last: Thanks @coder777. A catch-22 situation indeed. (by lastchance)
Freind class function inaccessible because of template
So function from class A is not available to class B because B has a template type and A can't recog...
[2 replies] Last: Remove <N> template<typename N> friend class B<N>; (by Peter87)
Reading Text File with Delimiter.
So the file contains integers, string, and a delimiter ','. It looks like this in the file 1234, Wh...
[3 replies] Last: You do have: int studentIds ; ifstream inputFile; getline( inputFi... (by keskiverto)
by Vemund
I need a new challenge
Hi, I am a hobby C++ coder and used some years now with Arduino. I want to say goodbye to wires and ...
[1 reply] : AFAIK plugins for GIMP are written in python. Small practical tools f... (by Thomas1965)
Need Help
been working on this wage calculator for a while and i cannot get it to print the tax and net pay. p...
[5 replies] Last: Your tax_rate is 27.0. If your wage has no decimals and hours has no ... (by keskiverto)
cout won't work from within function (ambiguos)
Hello everyone, I am new to this site and decently new to programming. I am working on a school ass...
[1 reply] : We need to see your code to be able to help. Be sure you post the code... (by jlb)
solving a system of linear equation using Armadillo library in c++
I am trying to use armadillo library to solve a system of linear equation in c++. as shown in the co...
[5 replies] Last: I have included path for armadillo file in include directory. so #inc... (by MikeyBoy)
Class and Object Calling Problem
Hey I have a little problem hope someone can help me solve it. - I have a class it’s own source...
[3 replies] Last: I think the error was called LNK multiply or something cannot remembe... (by mbozzi)
by stav
Preprocessor to iterate through enum ?
Hi im making a lexer and i have this Token struct: #pragma once namespace qq { enum TokenType...
[4 replies] Last: Boost can also help here: #include <boost/preprocessor/tuple/to_seq.... (by toad)
if else and sending to columnar report.
I am new to programming and I am trying in my if else statement (if a bag is over 50lbs for there to...
[3 replies] Last: Thank-you for posting the entire code. Now, go back and read @lastcha... (by doug4)
by les818
creating a program that will capitalize first letters in proper nouns
looking for ideas on how to do this using cin.getline
[8 replies] Last: word lets you configure it so that it gets it right nearly 100% of the... (by jonnin)
How to download any file from internet only using C++ Standard library (no third party library)?
I know it may be tough to do so. But I was looking for if any guide exists to do that. May be I have...
[5 replies] Last: [quote=poteto]I believe the tech spec is an adoption of boost asio, wh... (by Cubbi)
by AM111
C++ Exercise
Bom dia, Tenho que criar um programa em C++ que leia dois ficheiro txt. Um deles denominado Enco...
[4 replies] Last: The problem was the <<endl; Thanks (by AM111)
Assert and Void Help
Need help. It says there is a problem with my asserts (test) and how do I fix the average function. ...
[5 replies] Last: Your findAverage function is putting the "result" into the third var... (by Ganado)
Encrypting any text
I need to write a program that transforms all characters of text typed into std::cin into unreadable...
[3 replies] Last: ^^^ if you choose to use xor (or another self-reversing) as your base ... (by jonnin)
std function
I want know how can you use std::function <int (std::vector)> , example or tutorial.
[3 replies] Last: std::function<int(T)> (where T is some class/type) means that it's a f... (by Ganado)
I am trying to create a simple Math Solver Function.
The goal of this program is to allow the user to enter 3 numbers, and respectively carry out either ...
[3 replies] Last: void foo() { double a {}; std::cin >> a; // allow input auto b... (by keskiverto)
Anonymous Namespaces With Using Directives
Hello there! Essentially what I want to know is if it's possible to use an anonymous namespace to s...
[1 reply] : (At first, I didn't catch that you needed an anonymous namespace.) Li... (by mbozzi)
E1696 cannot open source file "sys/socket.h"
I was working on this project about 6 months ago. It was a windows 10 box and I was using Visual St...
[8 replies] Last: @mbozzi BasicLibTypes.h is listed below. Once I changed the WIN32 to ... (by bishoposiris)
Errors on code using functions: Not sure how to fix them
Good day I have written code to display matric students names, school, their mark average, whether ...
[4 replies] Last: I have fixed those errors Actually, you fixed some and created new... (by doug4)
Pages: 1... 678910... 16
  Archived months: [aug2018]

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