General C++ Programming - March 2019 (Page 8)

Inheritance and Constructors
 
Hello everyone, I am trying to complete a small C++ project but I have some questions and problems. This project is on inheritance and constructors. So ...
[3 replies] Last: You need to post your code. From what you've said it sounds like yo... (by AbstractionAnon)
Error during compiling process
 
When trying to compile I get these errors: Tabella.cpp:(.text+0x0): multiple definition of `tabella(char&, char&, char&, char&, char&, char&, char&, char&, c...
[4 replies] Last: Now it works thx. (by Yuripetrocchi)
How To Solve "Unhandled exception: std::invalid_argument"?
 
Hello Professionals, I have been trying many times to resolve this issue and also searched in Google some solutions but I ended up not finding the solution to ...
[2 replies] Last: Oh, I see now the problem. I tried to change the obj file to another o... (by kindgnice)
Any Assistance? lexical Analyzer program
 
Please help. definitely having trouble with assignment. For Program 2, the lexical analyzer, you will be provided with a description of the lexical syntax o...
[3 replies] Last: You only need to create the bodies for the functions declared in the h... (by Duthomhas)
Data Structures Grocery Bag Exercise
 
Exercise: Imagine that you have just left a store with a bag of groceries. You are concerned that the fragile items will not survive the trip home, so when you ...
[3 replies] Last: I think you're misreading the instructions. write C++ statements th... (by AbstractionAnon)
System Generated ID Number
 
I'm trying to make a program that generates an ID number automatically and save it in a text file however, when I close the program and reopen in it again it do...
[4 replies] Last: Thanks for the help I have the codes to use and it works fine thank yo... (by somebodyelse)
Array Problem
 
//Driver.cpp #include <iostream> #include <fstream> #include <string> #include <cmath> using namespace std; #include "List.h" int main() { ifstream in...
[3 replies] Last: Issues 1 and 2 apply to Line 34 as well: while (answer = true) { ... (by doug4)
by Hex213
lang c "clearing"/printing char*
 
Good afternoon, I have a little problem with printing char* combined with short. I have wrong output. Is there any way to fix it ? char* t(unsigned short ...
[5 replies] Last: > unsigned short has max. 6 digit, It has a 'minimum' maximum of 6 di... (by salem c)
having problems with my linkers I think
 
#include<iostream> #define GLEW_STATIC #include "GL/glew.h" #include "GLFW/glfw3.h" const char* APP_TITLE = "OpenGL TESTING"; const int gWindowWidth = 800; c...
[2 replies] Last: I got it fixed: It' was not using a glew32s.lib. But I appreciate the ... (by fronow20)
Help with class
 
I have two class of student classes and subjects that are these: class Estudiante{ private: int id; char nombre ; char apellido ; ...
[2 replies] Last: The instructions appear to suggest you keep a global list of up to 15 ... (by Duthomhas)
Help
 
I have an assigment due and a I am struggling, this is what I have so far. #include<iostream> #include<cmath> using namespace std; int main() { co...
[4 replies] Last: Instead of writing std::cout << choice; you can write std::cout << ... (by Grime)
Program Repeat Help(Y or N)
 
Hello, my code works fine the first run-through but when you repeat it, it skips over two user inputs. Can someone show me what I am missing? #include <iostr...
[2 replies] Last: Heh, here’s that manipulator: #include <iomanip> #include <iostre... (by Duthomhas)
Need help incorporating tts into a c++ program
 
https://www.codeproject.com/Articles/17897/audio-ostream-A-Text-to-Speech-ostream I'm following the above given tutorial to incorporate tts into a c++ progra...
[1 reply] : Installing Boost on Windows is a pain. I’m writing this off the top ... (by Duthomhas)
How do you chain functions with arrow pointers?
 
like this example? mars->foo1()->foo2()->foo3(); how do you chain function with arrow pointers? and in a practical example not just in theoretical
[5 replies] Last: Very tight! Nice! @ programmy You should notice that dhayden has p... (by Duthomhas)
C++ void* use for different data types
 
hi, I have a class like (with much more other elements and virtual functions included): class MyClass { void *m_pData; } And I want to know i...
[13 replies] Last: Initial post: And I want to know if it's "safe" to use "void *" type ... (by doug4)
by GhooSe
getchar double number
 
Guys I've written something but ı still lacking QUESTİON :Write a program that only uses getchar() for input, and can input a double number. You can use prin...
[3 replies] Last: Once you read the decimal point, exit the loop that enters the integer... (by dhayden)
ZLib To Extract A Zip
 
I am learning C++ and want to use zlib to extract a .zip file. I am lost on how to do this and would love it if someone could provide some guidance for me :)
[15 replies] Last: Your suggesting that he simply download a program that extracts ZIPs f... (by Ganado)
Cumulative Sum
 
I made this program but i cant make this work... #include <iostream> #include <vector> using namespace std; void cumulativeSum(vector<float> input, vect...
[6 replies] Last: Can you write a program to simply sum the numbers in a vector? The va... (by Duthomhas)
Calculate Expenses & Savings? (Modules w/ Global Variables)
 
Stuck and need some help! Write a program that inputs the income and costs (rent cost, bills, food cost) and returns the total expenses and the total savings. ...
[1 reply] : Hello newprogrammer916, what have you tried so far? Show which parts o... (by Ganado)
funtion that counts coloumn.
 
I have this mtx file: %%MatrixMarket matrix coordinate integer general % 5 5 10 1 1 11 1 5 15 2 3 23 2 4 24 3 2 32 3 5 35 ...
[2 replies] Last: my apologies ill delete this (by zaahm18)
March 2019 Pages: 1... 6789
  Archived months: [feb2019] [apr2019]

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