General C++ Programming - May 2011 (Page 25)

what are vp-trees and a bit more info regarding vp-trees required!
 
Hi, I've been given a project in data structures/OOP to make a program in C++ that notes the entry/exit time of the employers of a company and if a specific em...
[no replies]
Somme de matrice
 
Bonjour, J'ai obtenu une matrice classé par ordre décroissant. Je voudrais faire la somme des éléments de la matrice,si la somme est >0,je remplace ...
[1 reply] : Original post in English: I got a matrix ranked in descending order. ... (by closed account zb0S216C)
Files
 
Hello, I have written a program that I need a user to put in as many double values as they want, and then it saves those values to a file. I am stuck with what...
[8 replies] Last: No worries. I think the real problem here is that you started coding b... (by Moschops)
Implementing Multi-Linked List
 
hi there i am working on a project with implement a multi-linked list. in this list, nodes have a student's name,last name,birthday,address vs. i thought that i...
[3 replies] Last: sry not enough time to do it to avoid issues like this in the future,... (by kfmfe04)
reading an array of indefinite length from file
 
Hi, I want to read a bunch of two-digit numbers from a file and put them into an array, without any specifications about how many I'm supposed to read. Is there...
[8 replies] Last: Ok, thanks a lot guys, I'll manage now. (by dreambox)
My real Hangman help Post (1,2)
 
Ive got #include <cstdlib> #include <iostream> #include <string> using namespace std; int main() { string words ={cat, dog, mom, dad, grandma, gr...
[27 replies] Last: This is for me to Copy: #include <cstdlib> #include <iostream> #incl... (by mcqueen)
Help eror code
 
help me , build eror 1> d3dbase.cpp 1>d3dbase.cpp(59): error C2065: 'pSetStreamSource' : undeclared identifier 1>d3dbase.cpp(59): error C2065: 'SetStreamS...
[3 replies] Last: Can you give me link to source of this code so that i might answer you... (by savavampir)
Memory dealocation / leakage problem (urgent please)
 
Hi, Dear i need your suggestion as soon as possible to complete the tests on my data before monday. Senario: -I developed a project which contains 4 clas...
[7 replies] Last: thx to google: http://msdn.microsoft.com/en-us/library/x98tx3cf%28VS.... (by kfmfe04)
how to use this c++ template function. simple beginner question
 
I found this merge sort function but i dont know how to use it. please help #include<iostream> #include<stdlib.h> #include<vector> using namespace std; ...
[no replies]
Reading From Files
 
Hey, let's say I have a file like this: Example.txt ----------------------------- value1 1 word value2 2 word value3 3 word --------------------------...
[1 reply] : fstream file("filename.txt"); int i; string str; while(true){ ... (by hamsterman)
by xyyn
Why are function pointers and functors interchangeable?
 
I like to understand how things work underneath, and I can't for the life of me figure out how changing from a function pointer to a functor actually works with...
[1 reply] : Calling a functor (an object of a class with the function call operato... (by guestgulkan)
by yunru
Maps
 
I want to pair two objects together by the isbn of the book and the member id of the member but im getting an error, im doing the pairing wrong, could someone p...
[12 replies] Last: Thanks for all the help i solved it... i defined the map differently,... (by yunru)
Monte Carlo - Please check my algo
 
Basically, the problem simulates the following: There is an urn with 50 green balls and 50 red balls. I am allowed to pick balls from the urn, without replace...
[no replies]
Help with this problem regarding loopings
 
Make a program that willl generate n number of items of this sequence given the value of n from keyboard input. The program prints the items of the sequence an...
[1 reply] : Cross post: http://cplusplus.com/forum/beginner/42551/ (by Disch)
question regarding previous post - pw crack
 
http://cplusplus.com/forum/general/42279/ I wanted to try to solve this myself, as it is the first brute force pw crack I have ever tried. The following c...
[1 reply] : I dissasembled the exe and found these three 9 digit numbers. They ar... (by closed account zwA4jE8b)
About precompiled headers
 
As far as i understood if we add headers (for example from STL) like this: #include <iostream> #include <sstream> #include <string> ...and so on the order o...
[3 replies] Last: Yes. Always use the #ifndef ... #define ... #endif include guards. T... (by Duthomhas)
Matrix
 
Write a test program that reads a 4-by-4 matrix and displays the sum of all its elements. Heres a sample run: Enter a 4by4 matrix row by row: 1 2 3 4 ...
[10 replies] Last: Whoops, discredit that about the constness, you're not changing the ma... (by Veltas)
Odd Template Compile Error
 
3:30AM so brain is getting mushy - I need a sanity check with an odd compile error in gcc with this code below. If Line 70 is commented out, rest of the code...
[11 replies] Last: Thank you, hamsterman, guestgulkan I'm going to mark this one as solv... (by kfmfe04)
by bfpri
Merging HashTables into an array
 
I want to merge 2 or more hashtables together..It doesn't matter what the final form is, as long as I can iterate through it. Here the final form is an array. ...
[no replies]
i kind'a dont know C++ programming but want to create a simple applicaton that compiles executables
 
my second post... i kind'a dont know C++ programming but want to create a simple applicaton that compiles executables my first language is GML, and plan...
[6 replies] Last: A game engine can also be a library for an existing programming langua... (by Zeillinger)
May 2011 Pages: 1... 2324252627... 32
  Archived months: [apr2011] [jun2011]

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