General C++ Programming - February 2013 (Page 40)

Problem involving class template and [] operator overloading
 
Hello, I hope this is the right place for my question (if not, I would appreciate any suggestions w...
[4 replies] Last: Thanks again. Regards, bostjanv (by bostjanv)
unordered_map
 
This is gonna be hard to explain. I am learning to use some physics library. I need a unique pair...
[3 replies] Last: > i need hash function for pair of ints such that : > pair(EMT_WOOD, E... (by JLBorges)
Bug hunt!
 
I made a program that can use a function to manipulate data from a list class. The program is very b...
[4 replies] Last: Wow, that wasn't so hard after all :) I overloaded the constructor so ... (by Filiprei)
by Brody
read text write binary
 
I am planning to use this mostly to copy binary files, but why won't this work with text??? input.t...
[2 replies] Last: ooohhhhh... you caught my bug! Thanks! (by Brody)
arrays and random number sticking??
 
Hey guys, so here's the problem, I made a dowhile loop that randomly generates numbers and inputs th...
[1 reply] : int arr ; findMinmax(min, max); cout << "total even is "... (by cire)
by Phiru
vector push_back problem.
 
I am adding int type into vector called "vi" several times like this. std::vector<int> vi; vo...
[5 replies] Last: I got wrong information. Thanks to correct my wrong data in my head. (by Phiru)
by aazir
Password Masking
 
Hi guys I just developing a system for my project and i want to mask the password when you input it....
[8 replies] Last: Thanks Guys. (by aazir)
Calculating interest and making nested loops not working
 
Hi guys/gals, I am having an issue with a project I am working on for class. I manage to get everyt...
[2 replies] Last: what you need is a for loop for (statement 1; statement 2; statement ... (by cPlusN00b)
I cant figure out the error. please help?
 
#include <iostream> using namespace std; template <class T> void swap(T& a, T& b) {T temp=a; a=b...
[2 replies] Last: Are you getting a compile time error, or a run time error? I'm gues... (by AbstractionAnon)
Template function of a class
 
Hello, Everyone! I want to use a template function of a class. This is my code: #include "Compar...
[2 replies] Last: ne555, thanks! (by Observer)
Prime numbers using loop
 
Hi. We were asked to make a program which displays the prime numbers within the range you inputted.....
[6 replies] Last: Try this. #include <cstdio> #include <iostream> bool isPrime( int i ... (by hoity)
Templates Comparision
 
How do I compare two variables who do not have a predefined Type (i.e Templates). If I just do a==b...
[6 replies] Last: > I'm using the code posted by vlad above The code posted by vlad abo... (by JLBorges)
by akasya
Find, Calculate, Replace a String in a File with c++
 
Hello Community, i have a text file... with example following content: Pizza 23232 Car 44,495...
[2 replies] Last: Bear in mind that you can't have the behavior you see with text editor... (by maeriden)
by arms4
highlight word
 
I know how to change background and words colour but is it possible to just highlight the specific w...
[no replies]
pass argv[] to a function, return an array
 
hi, i am trying to write some code that passes argv into a function, i know the code part works in ...
[6 replies] Last: Its slow because you make an unneeded allocation on heap. You continue... (by closed account S6k9GNh0)
Templated Class Function, does not have a class type
 
I'm trying to template the return type for this function (component), I've looked around for example...
[2 replies] Last: holy crap, I can't believe I didn't see that, thanks :] (by Zephilinox)
by arms4
Matching game help!!
 
I encountered the problem for the numbers to remain if they are a pair until the game end. I have no...
[1 reply] : You have the 2D num array. int num = { {1,2,3,4},... (by cire)
by jnikko
luhn formula
 
how i create program;verifying 16 credit card using luhn formula
[no replies]
I need help In Runge-Kutta 4
 
I made a program that seems to work and runs, but I'm not sure if the output of my Runge-Kutta 4 is ...
[1 reply] : I think this program is working the way it should. (by crimsonzero2)
by Zapeth
How does std::string::rfind work?
 
Hi, title is my question. I would imagine that either the string gets temporarily reversed and he s...
[2 replies] Last: Ok well I thought the algorithm would be a standardized one. I guess ... (by Zapeth)
February 2013 Pages: 1... 383940414243
  Archived months: [jan2013] [mar2013]

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