General C++ Programming - December 2010 (Page 19)

Struct and Class Instances
 
I have a problem, I wanted to auto setup the structure members by calling a function. I had this structure: struct hgeQuad { hgeVertex v ; HTEXTURE ...
[5 replies] Last: All right, I guess I got it now. Thank you all. (by Kapetozo)
by poona
question on namespace declaration from stroustrup section 8.2.8.1
 
I have a question on namespace declaration from stroustrup section 8.2.8.1 <stroustrup> --Section 8.2.8-- His_string { class String { /*...*/ }; ...
[2 replies] Last: Then the example he has given is wrong?! (by poona)
writing/reading a vector of objects
 
I have this class below class Account { private: string fname; string lname; double amount; public: Account() { } Account(string ...
[1 reply] : These lines: void save(fstream& infile) void upload(fstream& infile... (by kbw)
by poupik
segmentation fault
 
hi i have a class with a member which is a pointer to an object on the heap. (the object is created from outside the class and is passed to it as a reference ...
[4 replies] Last: You didn't get PiMaster's post. Typically, it has nothing to do with ... (by h9uest)
by Aerus
Template class with dynamically allocated memory
 
So i wrote a class that implements a Balanced Tree, the elements in the tree are key,value pairs. So you could add <int,string> to the tree as well as <int,int>...
[3 replies] Last: hmm I think that function there would not be particularly sensible, si... (by slicedpan)
strange error, any ideas?
 
error MSB6001 This came up in my program, struggling to understand what it means? Any ideas would be much appreciated
[2 replies] Last: Check it out: http://social.msdn.microsoft.com/Forums/en/msbuild/th... (by h9uest)
by h9uest
C++ map VS Java hash map
 
Hi, folks: My friend and I have HUGE amount of text data to deal with. Now we decide to read in the data and store them in map for easy access in the prog...
[5 replies] Last: To all: thank you guys, the problem has been solved. I switched to has... (by h9uest)
My head hurts. N00b Program.
 
I can't even begin to figure this out. I am extremely new to c++ and my math isn't the best yet I'm supposed to program this. Any help or input would be MUCH ap...
[1 reply] : Can't you find v from the formula? w1 = w0*(1-v/c) w1/w0 = 1-v/c ... (by hamsterman)
Program creation - chocolate sales
 
Hi, I am a student studying programming and design. I have been given an assignment and I just dont know where to start, if anyone can help me in the right dire...
[no replies]
Efficient way to determine longest edge in an image
 
I am working on a set of images, and as an intermediate step, I need to determine the longest edge in a 2-dimensional image. The original image has been subject...
[1 reply] : Hi, I am not sure if you have the coordinates for each vertex, if ... (by shredded)
precedence of template funtion over non-template function?
 
Hi! It seems that a template-function has always precedence over a non-template function if the function argument doesn't match the type of the non-template ...
[6 replies] Last: Thanks for the proposal, this is what I am currently doing. However, i... (by grabner)
by Sperry
Linking to OpenGL32.lib, and other .lib files
 
Hi, I am having some problems trying to use OpenGL at the moment, and I got these errors when trying to compile: 1>Main.obj : error LNK2019: unresolved ex...
[1 reply] : Don't worry, I managed to fix my errors. Problem solved. (by Sperry)
Threading : boost::python and python
 
Hi all, I have a problem with integrating between c++ and python (using boost - python library) My c++ side have many threads, that invokes two callbacks fu...
[no replies]
by red463
New Programmer Job
 
Hi all!! Nice to be here, I have joined a Software corp recently as a programmer, the thing is that I am not very familiar with C++, my manager wants me to r...
[7 replies] Last: Based on my working career, I spent about 75% of my time maintaining l... (by sohguanh)
by Nuc
Beginner Program
 
#include <stdio.h> #include <iostream> #include <conio.h> #include <Windows.h> void lossfunc(int hero, int loss, int heroname) { int healthremaining...
[11 replies] Last: std::cin.getline(heroname, std::cout, std::cin); This is wrong. ... (by Disch)
find the minimum or maximum value in a column of a two dimensional vector
 
i want to find the minimum value of a column in a two dimensional vector.. is there an easy way to do that? a function that does that easy for example..
[4 replies] Last: Oops, I didn't even notice that you said columns. If each inner vecto... (by jimc)
Error LNK2019: Unresolved external symbol
 
class NumDays { private: double hours; double days; public: //constructor that assigns values to both hours and days, but only //takes in the ...
[6 replies] Last: Try to run them and take a look whether the result is what you expect.... (by b2ee)
Cannot open multiple instances of a program I wrote
 
Hello, So, I've been trying to make one of my program open separate instances of another program I made. Let me show you what I'm trying to do. Program A has ...
[5 replies] Last: There was a website with some example and it used the loop, but your m... (by lonewolf1991)
Random error
 
Can anyone spot this error? //PAGE 1 CLASS #include <string> #include<iostream> #include<cmath> using namespace std; const int X = 4; class Resistanc...
[1 reply] : You're trying to assign a double to a string. This won't work by just ... (by slicedpan)
Program without window
 
Hi... I'm trying to make a program that works with no open window or terminal in Ubuntu, using C++... What I'd like the program to do is register a keypress ...
[2 replies] Last: Linux doesn't use the <windows.h> API. What you are trying to do is... (by Duthomhas)
December 2010 Pages: 1... 1718192021... 24
  Archived months: [nov2010] [jan2011]

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