General C++ Programming - April 2018 (Page 8)

using Macros: how can i get functions?
 
using macros, how can i get functions from a class name?
[18 replies] Last: i'm sorry but i will try explain. we create a class.. these class hav... (by Cambalinho)
how do I print out subclass object and int sega int nintendo bool enjoy and string fun
 
hi there #include "stdafx.h" #include <iostream> #include <fstream> #include <vector> usin...
[no replies]
is there any way i might be able to interrupt loops at given points
 
i am making this calendar program and i am wondering if there is any way to interrupt loops at a pre...
[no replies]
by stav
Check whether structs members have changed from the default?
 
Hi say i have a struct like this: struct example { int ex_value_1 = 435; int ex_value_2 = 325...
[11 replies] Last: I had to resort to a macro to get rid of the ugly &example:: , though... (by tpb)
General tree
 
I'm having trouble with this program, it outputs me a garbage number when I set another value in a n...
[no replies]
by JN1982
Arrays
 
Given the following array declaration, what is the value stored in the scores element? int scores...
[no replies]
by JN1982
Arrays
 
Given the following array declaration, what is the value stored in the scores element? int scores...
[no replies]
using pointer to member function as argument
 
Hi - I'm working on a FreeRTOS project, and I'd greatly like to take advantage of C++ where possibl...
[9 replies] Last: Hi poteto - thanks for the link. That does clarify what I can and cann... (by mzimmers)
How to access Structure info from map?
 
I am trying to create a hash map and i do not know how to access entry from openAddressTable t...
[1 reply] : now i think you do it like this int size = openAddressTable.size()... (by d1g1talarts)
by nearc
sort algorithms
 
Hi, I could really use some clues how to program this task. I'm bad at programing, so I have no idea...
[1 reply] : Quick sort can be done in c++ visual studios like this template<cla... (by d1g1talarts)
by AnonCG
Airplane Seating Validation Problem
 
This is probably right in front of me but I just can't seem to see it. Background: I'm writing code...
[4 replies] Last: Ok, I'll add some boundaries. Thanks for the advice and help! :) (by AnonCG)
by CFLam
vector of struct of vector, clear() issue
 
Hello all, If I define the following class: class MyClass{ struct myItem { int myInt;...
[3 replies] Last: @Peter87 & @tpb, thanks for the clarification. (by CFLam)
by CFLam
problem with transform
 
Hello all, I need to read in from a csv file and store in an integer array, after read in the line ...
[4 replies] Last: @lastchance, the csv contain empty cell and mix string with integer, b... (by CFLam)
Input vector and store into txt file
 
I have been searching for a while and would like an example of the following. 1) Create a vector...
[9 replies] Last: I've decided against writing an overload function all I had to do was ... (by GhettoBurger)
buttons problem
 
Hey everobody, I have problem with the buttons beneath this txet screen. when I choose one of th...
[1 reply] : This is a bug that has existed for a long time. The buttons work when ... (by Peter87)
by CFLam
"auto" declaration issue in C++
 
Hello all, I have a problem in using "auto" declaration. I write a program in Visual Studio 2017 as...
[4 replies] Last: @poteto thanks for your help, eventually I got it works (both the prog... (by CFLam)
by Daegon
Telnet window
 
Hey so I'm new to c++. I've coded in lua and currently do so. I've used clients such as zmud and mud...
[no replies]
by Fadey
forward class (cluster of callbacks) calling function of unknown params (...)
 
class forward { public: vector<void *> functions; template<class FUNCTIONTYPE> inline bool cal...
[5 replies] Last: Its not whether it works or not, its what the purpose of this is. (by poteto)
Macro question
 
Hi guys I recently asked a question about unistd.h anyway reading through it I can't decipher ...
[4 replies] Last: You've got your hands on the wrong unistd.h file. That's a lower-level... (by tpb)
by BKn
Selecting a circular region in 2D scatter plot
 
I have a 2D scatter plot. Now I want to select a circular region in this plot and use the data ins...
[1 reply] : #include <iostream> #include <iomanip> #include <vector> #include <r... (by tpb)
April 2018 Pages: 1... 678910... 17
  Archived months: [mar2018] [may2018]

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