General C++ Programming - October 2014 (Page 32)

Variadic template or initializer_list?
 
I want to initialise my class as an array and i want to do it like this: #include <initializer_list> template <class T> class test { private T* arr ; ...
[5 replies] Last: @MiiNiPaa: Thanks so much for your help. I did not know about the func... (by AbsBeginner)
Logical operations not working
 
int main() { char rORc, choice; int sizerc; values(x, s); displaytable(x, s); do { prompt(rORc, sizerc); if(rORc == '_') { sortbyr...
[2 replies] Last: Okay I understand. Thanks a lot MiiNiPaa, I really appreciate the help... (by MazharMustapha)
IRS Tax data
 
An IRS agent is checking taxpayer’s returns in the $20,000.00 to $30,000.00 income bracket (gross earnings). Each record of the data file contains a tax ident...
[3 replies] Last: Actually, he gave you everything you need to read in the file data. M... (by doug4)
I/O opening the file twice problem
 
Hello guys. I've a c++ code written as the following: ofstream myfile; myfile.open("example.xls", ios::out) myfile << "Hello"; myfile << "Line 1"; . ...
[5 replies] Last: Even if it is excel file. Actually excel file is a complex entity: com... (by MiiNiPaa)
Showing all running processes like in taskmanager
 
Hi. I want to show all running processes of windows. my motive is whenever any running process closes/quits whether it be console or window based on windows i...
[1 reply] : http://www.cplusplus.com/forum/windows/45564/#msg247370 (by MiiNiPaa)
by Vhin
Polymorphic 'Enums'
 
This is a somewhat trivial temperature scale example. Something that I've seen used occasionally are enum classes. Something like: enum class temperature_sca...
[3 replies] Last: helios is using function pointers. Be careful so you don't forget to a... (by ne555)
Help displaying my array!
 
So I have this code and it is supposed to place the address of an array into a pointer variable in the struct. However, whenever I dynamically allocate memory f...
[2 replies] Last: @whitenite1 Thanks so much! I really appreciate the help! :D (by rdeleon6)
Defining function prototypes in a header file without an implemented body
 
Hey all, I didn't post this in the beginners section as I think it is abit advanced for it, but here is my problem: Basically, I have made a program which i...
[9 replies] Last: @JLBorges: Great, thanks I'll give it a shot on the weekend :) @heli... (by NickCullen)
by yo2xia
Passing a matrix in a function () in C++
 
I`m a beginner of C++. Any help will be very appreciated! I have an issue passing a matrix to a function in C++. There is the function i want to create: #inclu...
[4 replies] Last: I see what you mean, but how could i set X or Y matrix as the paramete... (by yo2xia)
by jbing
A function to return a vector N program
 
My function has the following prototype: std::vector<double> calculate_mag_response(double start_freq, double end_freq, int N, std::vector<double> num, std:...
[2 replies] Last: I see you place a variable in here but put values in here that won't c... (by jbing)
Getting error in Karatsuba's multiplication program
 
I have made a Biginteger class that performs multiplication operation according to Karatsuba's algorithm. But it seems that the code is not working perfectly.In...
[2 replies] Last: e made a function named karatsuba(BigInteger a1, BigInteger b1)that p... (by cire)
by paloma
Can somebody review my assignment?
 
In this exercise, you will design a class memberType. a. Each object of memberType can hold the name of a person, member ID, number of books bought, and amount...
[no replies]
Sending a dynamic allocated 2D array over a named Pipe between 2 executables
 
Dear all. First, Im very new to C++. Im writing a scientific software where I like to sent a 2D array (5x4) over a named pipe from a server to a client. When ...
[2 replies] Last: Many Thanks!!!!!! it works perfect That really saved my week (by Evidenso)
calculating array
 
I'm just learning array and I wanted to input 5 numbers and find the average. Here is what I have so far: #include <iostream> double comavg(double x , int n)...
[2 replies] Last: Thanks you very much. (by OPzCatchMee9)
My Dynamic Memory is affecting my non-dynamic values.
 
Okay, so i'm implementing a playerclass for a game.. in the game there are multiple player types, weapons ect.. i just wanted to turn my players weapons into a...
[1 reply] : #ifndef PLAYER_2_H #define PLAYER_2_H #include <iostream> #include <... (by xxsammyxx)
Need help with hw. I having problem displaying telephone number.
 
To make telephone numbers easier to remember, some companies use letters to show their telephone number. For example, using letters, the telephone number 43...
[1 reply] : The first thing you need to do is taken in an array of chars. Some... (by TheKingOfTyrants)
Not sure what I'm missing---Functions and menus
 
For the life of me, I can't figure out what I'm doing wrong. I've changed this program every which way, and it still refuses to work. The goal is to have a men...
[3 replies] Last: What IDE/compiler are you using? Sounds like an IDE-specific thing bec... (by TheKingOfTyrants)
Finding
 
can someone help me in creating a C++ program for converting Octal to Hexadecimal.. i looked in the web but all of them are C program..
[3 replies] Last: Thank you MiiNiPaa ^_^ really you helped me alot ^_^ (by briansanity)
Problem with CREAL, FFTW
 
Hello Everybody, In a part of my code I'm defining limits over a variable which is in type of: fftw_complex *i_phi Then it is initialized as: ...
[1 reply] : You should ask this question in the FFTW mailing list. (by helios)
Errors in LinkedList assignment
 
kgu
[no replies]
October 2014 Pages: 1... 3031323334... 38
  Archived months: [sep2014] [nov2014]

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