General C++ Programming - September 2008 (Page 7)

array bound is not an integer constant
 
hi, i have to input and then display a matrix using functions. the problem is that i have to enter the bounds of the matrix from the user.i tried this by two wa...
[3 replies] Last: See http://www.cplusplus.com/reference/stl/ for docs on the various st... (by Faldrax)
SystemC signals
 
Hi, please let's look at the code below. After that, please consider the problem of modelling the signal-level communication between master and slave: 1) How...
[2 replies] Last: include "systemc.h" #include <iostream> class write_if: public sc... (by saggiatorius)
by drac
simple question
 
all right, i'm still working with this project that simulates an agenda..the problem now is that i'm working with the MAIN, and there are certain functions that...
[1 reply] : Rather than getting the index from the user it may be easier for the p... (by buffbill)
by Pierre
Deleting from a multimap with an iterator
 
I'm building a graph (of the graph theory kind). I add points to a complicated data structure, keeping track of the convex hull, and when I add a point, I then ...
[2 replies] Last: I thought that's what was happening. convexhull normally has about sqr... (by Pierre)
Problem With This Program
 
// Chairs.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "iostream" #include "conio.h" #include "string" u...
[1 reply] : It's i<NO, not i<=NO. The difference is crucial. (by helios)
by yakiza
creating a vector of abstract objects
 
Hello, I am writing a ray tracer and thought the best way to handle the scene's "objects" would be to have an abstract superclass (called Object) with just pure...
[7 replies] Last: Ah! Thankyou so much :) (by yakiza)
unknown funtion problem
 
I wrote 2 different source files.When I compile the code compiler gave an error message "conflicting types for bar".if,I write entire program in 1 file , it wor...
[1 reply] : It's because you have to put the prototypes before the definitions of ... (by firedraco)
Looking for direction (in the form of books, tutorials, etc)
 
Having read a couple of introductory books and a few on data structures and algorithms, I am now looking to take the "next step". Basically, I'm looking to l...
[5 replies] Last: What do you guys think of this one? http://www.amazon.com/Inside-Ob... (by bern19ardo87)
cannot instantiate abstract class
 
I have the following error which I can not resolve. f:\projects\080915 state stack v3\source code\singleton.h(26) : error C2259: 'State' : cannot instantiat...
[4 replies] Last: Actually what do you want to achieve here? Singleton and returning ... (by satm2008)
by gAaRa
Running another .exe file in my program
 
Hello people I have a small question regarding running a .exe file from my program is possible ? For ex : My main program is main.exe in C:\Test folde...
[3 replies] Last: cstslib for one and windows.h for the other. http://www.cplusplus.c... (by helios)
Inheritance
 
I know friends aren't inherited, but is there anything in particular I can do to instead of saying make class A a friend, say make all children of class A frien...
[1 reply] : I don't think so. Why so much friendship anyway? Often times excessi... (by jsmith)
by marc
SDL event.type error
 
The following is a snippet from my code: while(SDL_PollEvent(&event)) { if(event.type == SDL_Quit) { ...
[6 replies] Last: That worked perfectly; thanks Zaita. =D (by marc)
by samnet
ado in c++
 
what is the xxx.h in the include folder? have any sample for dev c++?
[no replies]
vector usage
 
I am doing a calculator, and I need a storage for my built-in function. Currently, I have a vector contains all the cmath function names to be used. I planned...
[2 replies] Last: Is it better in term of memory? Well, I also found out about pair<a, ... (by chu121su12)
Socket connection
 
I want a simple socket code that looks like this. SendData(hostname,port,data,size_t data) GetData(hostname,port,&data,size_t &data) I want to send a reque...
[8 replies] Last: This is mostly from the microsofts example above with some modificatio... (by Mitsakos)
Scanning for certain words and logging advice
 
Im developing a anticheat for a game that check the players keybind info and so far ive got it to do half of it. Im trying to get it to scan the file for a ce...
[3 replies] Last: I'm still not sure what you're having troubles with. Which is the half... (by xabnu)
by drac
what does this mean??
 
fatal error C1075 end of file found before the left brace '{'.. this error comes out on the .cpp files of the classes..in this .cpp is where I define the fun...
[2 replies] Last: found it.. thanx! (by drac)
Odd IO situation
 
Have an IO class defined in the header file below: class file_byte_stream : public byte_stream_interface { private: #if defined(_MSC_VER) || def...
[no replies]
by Gregor
Implementing templated class constructors
 
My nice message was acidently deleted when pressing the backspace by acident, so here is the brief... abstraction.h template<class T> class Class { publ...
[3 replies] Last: Yeah. You see... VC++ has this thing... http://www.cplusplus.com/foru... (by helios)
variable length dynamic vector
 
I have 24 vectors of maximum 100.000 elements. Now I'm using xArray = (double*)malloc((number_of_samples)*sizeof(double)); to allocate the memory. I am doi...
[1 reply] : Those are arrays, not vectors. Use std::vector, then. http://www.cpl... (by helios)
September 2008 Pages: 1... 56789... 11
  Archived months: [aug2008] [oct2008]

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