General C++ Programming - October 2012 (Page 35)

by vijkrr
maping two values via enum
 
Hi I've two values eg enum { zero_t = 0, one_t, two_t, } from one funcito...
[5 replies] Last: And here it is a little more specified (less generalized) for readabil... (by Stewbond)
Template question
 
I have a simple sorting function to sort two vectors based on the value of the first vector. Here is...
[1 reply] : It should be const references. template <typename T1,typename T2> boo... (by Peter87)
STL containers holding pointers
 
This is about the discussion started here http://www.cplusplus.com/forum/lounge/81411/ I'm making a ...
[no replies]
Bank Charges Program
 
// Includes #include "stdafx.h" #include <iostream> using namespace std; // Main Function int mai...
[1 reply] : second = (checks * fee2) + first; What is the value of first at t... (by Moschops)
How can I debug or do a trace of program with MACRO in C
 
I have a simple program with MACRO in it as shown: #include <stdio.h> #include <stdlib.h> #defi...
[16 replies] Last: I suppose you could compile the preprocessed files normally and trace ... (by cire)
Palindrome or not
 
I want to know if my code is correct . the question is ... create a program that will check if the ...
[1 reply] : char word; Char is only going to hold a single character. Not sure i... (by ResidentBiscuit)
for loop
 
Program that will display sequence example: 9,8,7,6,5,5,6,7,8,9 that is the output. There's ...
[2 replies] Last: OP, your name fits you. I have no idea what you're trying to say. Are ... (by ResidentBiscuit)
Generate randomize number array
 
Create a program that will generate randomize number that will store as the element inside the array...
[2 replies] Last: One problem at a time. Do you know how to find the highest number in t... (by Peter87)
C ++ problem using sentinel loop
 
a mail order house sells five different products whose retail prices are: product 1 - $2.98,product ...
[1 reply] : Multiple things 1) When posting code use the code tags ("<>" symbol o... (by codewalker)
Function
 
help please write a program which will read price of an item and tax rate.the program will call a...
[4 replies] Last: yeah i can do that... here it is # include <iostream> double display... (by Kenza Darling)
by aj3423
implement observer pattern
 
Hi, I'm implementing an Observable class, any class would gain the ability of the observer as long...
[8 replies] Last: it looks traditional, with ISubject introduced, each event needs an ex... (by aj3423)
Program that will convert temp
 
As far as i made this is what my program looks like.. but whatever value you have entered in the cel...
[2 replies] Last: Thank you very much :D it works. (by saywhat)
qwt3d display the number of every node in 3d surfaceplot
 
Hi! I want to make a graph with some points in the 3d space.I want to display the number of every ...
[no replies]
C++ implementation of Option Design Pattern
 
Hi everybody, I am trying to realize the Option design pattern (from http://www.codeproject.com/A...
[3 replies] Last: http://en.cppreference.com/w/cpp/types/is_pod (by morando)
Collision Detection - how do they do it?
 
Ive played games like terraria, minecraft and worms world party, all great games, but how do they do...
[3 replies] Last: Thanks for the replies, much appreciated. Just a curious question :) (by SuperStinger)
by cbegan
code help
 
I need help writting code for the following: Declare k, d, and s so that they can store an intege...
[1 reply] : I guess http://www.cplusplus.com/doc/tutorial/ will answer these nicel... (by codewalker)
Help creating table in C++
 
Hey Guys! I was hoping somebody could help create dynamic tables.In this program a user could creat...
[1 reply] : Look at std::map http://www.cplusplus.com/reference/stl/map/ Otherwis... (by codewalker)
Programming assignment help/advice?
 
Write a C++ program to process payroll. Raw payroll input data is stored in the file: payData.txt....
[4 replies] Last: You need a class for the employee. It will have member variables for t... (by TheIdeasMan)
Does Uint8 or short use less memory
 
Hi all, just a curious question. If I use a short or Uint8 or Uint16 rather then just a plain int...
[5 replies] Last: Thanks for your replies, much appreciated! Oh and thanks for the artic... (by SuperStinger)
by iky
Write a literal representing the integer value zero.
 
i thought i knew how to do this but i tried everything and nothing seems right. can someone help me?...
[2 replies] Last: "\xC0\x80" :O] (by Duthomhas)
October 2012 Pages: 1... 3334353637... 50
  Archived months: [sep2012] [nov2012]

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