General C++ Programming - January 2018

Having a problem with undeclared identifiers
I know that I have sum listed as int sum but when I go to debug it shows up as undeclared identifier...
[3 replies] Last: That jsut means that there were lots of errors beforehand, but the inc... (by doug4)
by stav
Multiple variable names?
Hi i have a Time class that calculates a deltaTime and i thought it would be neat to make it so ...
[3 replies] Last: While we're at it, why not just use the <chrono> facilities? They do a... (by Duthomhas)
by Thelps
Convert char from filestream to lowercase..?
Hi all, Please read before posting: I'm taking data from a ifstream filestream (that's reading f...
[1 reply] : tolower(currentChar); That doesn't change currentChar. It's a funct... (by Repeater)
by slei
multi line macro in multiline macro
hey is it possible to have multiline macros in muliline macros? not sure how to do this, if anyone c...
[3 replies] Last: oh man, i didn't even notice I'm trying to use a loop outside of a fun... (by slei)
by CalebS
I/O records seperated by {}
New to file I/O and c++ in general, would greatly appreciate any help or if someone can point me in ...
[2 replies] Last: #include <iostream> #include <fstream> #include <string> #include <ve... (by lastchance)
Keypad State Machine
I'm working on a state machine which displays the letters A, B, and C in that order. If at any point...
[no replies]
division in C++
Hello friends, I have a small question. why does cout << 11 % 3 << '\n'; gives 2 as an output? ...
[5 replies] Last: Remember, floating-point constants are type double by default. In List... (by sm2345110)
c++ function return
#include<iostream> using namespace std; class test{ public: test(); ~test(); in...
[1 reply] : why would it be? you don't set anything to null anywhere. temp is ... (by jonnin)
C++ Posts by a forum member
Is there a way to see list of all threads that have a post by a given forum member. For example, ...
[1 reply] : Perhaps a more experienced user knows, but I don't think that's availa... (by Ganado)
by blaq
Dynamic Array of Classes w/ defaults
Hi, I made an class that requires passing 2 variables by default: class TestClass { public: T...
[1 reply] : Are you sure about the "need"? If you would not need "dynamic array",... (by keskiverto)
Generating random number input (to be used 6 times)
I am creating a random guessing game in which I need to generate an input 6 times. I know how to gen...
[2 replies] Last: Basically a a random number is generated and the user inputs a guess. ... (by captainsasss)
by Mk87
How to implement 3 digit binary numbers into 2D vector in C++?
I want to write a C++ code contain all 3bits binary numbers into a 2D vector like the following matr...
[4 replies] Last: Well, you will have a vector< vector<int> > if you change line 6 of my... (by lastchance)
ok guys, im trying to code a grade calculator for my programming class and my if/else if block is sc...
[5 replies] Last: nvm, got it (by matiasp1998)
Why am I receiving the following error code: "undefined reference to 'displayMonthlyReport (MonthlyBudget const&)'
/* Program Description: Asks for monthly living expenses. Calculates and displays the difference...
[2 replies] Last: THANK YOU (by jimothy87)
Need help opening a file from user input.
I get an error that says, "no matching function." On the line with the function. #incl...
[2 replies] Last: I am using c++11 and i still get that error message for some reason. ... (by raptorjesus)
by stav
sfml texture shared_ptr error
Hi Im using sfml and im trying to load a texture Ive made a map of strings and textures, m_tex...
[6 replies] Last: If the MyAssetManager object is static/global are you sure that it has... (by Peter87)
by dbag
Coordinates Reprojection with GDAL
So I am trying to re-project a coordinate from WGS 84 / UTM zone 33N (Meters) to WGS 84 (DD). I have...
[2 replies] Last: Your right it does appear to be returning a null pointer (by dbag)
Pulling data from a text
I'm new to C++ and I'm having issues pulling data from a .txt file. What I have is a .txt with multi...
[1 reply] : Your code will look something like this: ifstream infile(filename); ... (by jonnin)
Compiling .cpp files separately
Hi. I would like to use a C++ library to deal with sparse matrices. One library that I came acros...
[1 reply] : VS2015 has some kind of solution explorer, I think. If you right click... (by Repeater)
Coding for a rock paper scissors game Function > bool isMoveGood(char move); My Response > v...
[7 replies] Last: there isnt even any code past a cin and cout statement if you make a 2... (by jonnin)
January 2018 Pages: 123... 10
  Archived months: [dec2017]

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