General C++ Programming - October 2008 (Page 8)

by romeoz
Program not working when building
 
I created three files, Checkout.cpp, grocery.cpp and grocery.h I try to build it and it creates an exe file but when I run it I dont get the intentory list to ...
[14 replies] Last: Glad it's starting to work for you now :-). I'm aware of the problem ... (by guestgulkan)
by Nandor
Winsok2 problem
 
I have a problem using winsock 2: 1>c:\documents and settings\nandor\my documents\warknight\warknight server\warknight server\warknight server.cpp(14) : error ...
[12 replies] Last: I tried...but i haven't got any for multiple conections...I'm now tryi... (by Nandor)
Please assist with double parsing / double arithmetic
 
I'm making this scientific calculator for my project at uni [ which calculates values of various physical quantities ] and I am stuck with a problem in this par...
[3 replies] Last: I'm wanted to use ctr as the counter in the next loop So what must I ... (by rockinruler)
Determining the number of parameters for operator()
 
Given a function template<typename F> void foo(F func) I end up with 4 possible situations: (a) F is a pointer to a binary function (b) F is a pointer to ...
[no replies]
data struct.
 
i am stuck in a prog. and i want your help... I would like a data structure type (map, set, vector, list etc) that takes string, and allows me to seach in it.....
[1 reply] : Try looking at the documentaion on the STL containers, http://www.cplu... (by Faldrax)
by janra
stringstream problem
 
If have a small function that checks date formatting, the date is of the form ddmmyyyy. Part of it is shown below. using namespace std; . . . void ...
[5 replies] Last: That makes sense now, thanks (by janra)
linker error 2019
 
I keep getting an lnk2019 error with the following code. driver.cpp //Author:Wesley McCulloch //Section:01 //Date:October 9, 2008 ...
[no replies]
by Anushi
compiler table limit exceeded
 
hi, i am constructing a code for an application in which i m using multiple files. i've kept the functions in varios files and i use them in d main file directl...
[3 replies] Last: Any option of getting a real compiler? That seems a be a bug in Borlan... (by Zaita)
by jrok
setting a random no
 
hi, I am trying to write a program and the first step is to set a variable to a random no btwn 1 and 3. I seeded the random function with the system time and us...
[7 replies] Last: You declared random like this: int random(int& car_door, int& go... (by jsmith)
State Machine utility class(?)
 
Hey everybody, I am a self-taught programmer who wants to develop games. While fiddling around with the beginnings of a game engine, I had a thought: Why not...
[1 reply] : I would recommend taking a look at http://www.boost.org/doc/libs/1_... (by jsmith)
conecting to usb port
 
Hi, i need to connect to a USB port using standart functions on c++ or c. I know there is a way, but i cannot find'it. If someone can help. Thanks, Keps.
[1 reply] : and what would you actually do with the usb? (by Nandor)
by charu
operator overloading
 
7. Given the class definition class A { public: //constructors // other members private: int x; int y; }; Give declarations o...
[1 reply] : Read: http://www.cplusplus.com/doc/tutorial/classes2.html (by firedraco)
LNK2005 Errors
 
Hi all... just making an introductory program using linked lists and I am having troubles compiling... getting these messages 1>main.obj : error LNK2005: "pu...
[3 replies] Last: NO - I was trying to say that you should NOT have #include CUNitLis... (by guestgulkan)
opencv problem
 
I am working on windows, and I recently formatted my computer. I cant seem to find cvGoodFeaturesToTrack in my opencv folder. I use Visual Studio 2008. M...
[no replies]
Redefining a function?
 
I use a public source code for something and it contains some functions in the source code that I always remove. I always customize this source code so it's a l...
[2 replies] Last: No, AFAIK, you can't redefine functions...you could overload them, but... (by firedraco)
by teslaa
what is float** temp ?
 
what is this variable with a double asterix? float** temp; temp = = new float* ; and whats that being assigned to it please?
[1 reply] : temp is a pointer-to-a-pointer-to-a-float. In this case, temp is be... (by jsmith)
Inheritance Problem
 
I am doing a program where Im using inheritance. I am having problems with the base class. I have three files pointtype.h, pointtype.cpp, main.cpp This is the ...
[1 reply] : Are you linking both .o (or .obj) files into the executable? It sound... (by jsmith)
by Nandor
MySql
 
Doea anyone know some tutorial for getting information from MySql databases?
[6 replies] Last: I've only ever connected to MySql using the c interface. But see if... (by guestgulkan)
by lipune
c++
 
what is the use of "make file" and gdb.how can put all my code into the gdb after compiling all my file with "make file".I am just confuse how to compile both w...
[2 replies] Last: Thanx a lot sanzilla,,,,,,,but can you tell me if we use makefile then... (by lipune)
[SOLVED] Functions/Inheritance
 
Say I have the following code: class animal { public: string name; } class cat: public animal { public: bool has_tail; } class bird: publi...
[2 replies] Last: Got it! Thanks! (by firedraco)
October 2008 Pages: 1... 67891011
  Archived months: [sep2008] [nov2008]

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