Beginners - June 2010 (Page 16)

by column
libiconv-2.dll is missing
 
Hello, I have done small application that works on xml parsing. My application starts with erros "The program can't start because libiconv-2.dll is missing ...
[no replies]
by Osor77
Declarations
 
Hi Guys, I would like your opinion on this; are the following two declarations equivalent ? If not, why ? 1) void (*f(struct t *p, long int n))(void...
[6 replies] Last: thanks for the answers. Yes, it was late at night and the description... (by Osor77)
by Gio
Wierd little thing when assigning class values
 
So, I'm writing a roguelike game in C++. But, its complaining about a class I made called "Player" in the file "player.h" in the file "monster". When I input in...
[5 replies] Last: Could you post Player.h? (by filipe)
Example of using namespace std error
 
As everybody would say, using std:: is usually better than using namespace std; . I got the point on how it works but can you give me a code(using namespac...
[3 replies] Last: #include <iostream> #include <algorithm> #include <cstring> //... (by Galik)
Programming a Point Class
 
I need to program a class Point that does a few things. Anyone mind helping with where I need to go next? a) Create a user-defined class Point that contains ...
[1 reply] : I really like the way you have used using to specify only the items yo... (by Galik)
call of overloaded ambiguous
 
I've got two member functions and g++ is giving me an ambiguous error. This just may be the way stadarg works. SAS::send(char code, int level, char *m) {...
[2 replies] Last: Yes, the first function is not necessary. (by jsmith)
by declan
Strange intermittent error
 
Hi everyone! I'm running a Physics simulation. I enter a number of particles to simulate, and a number of time steps to run it through. It's working complete...
[4 replies] Last: Got it! First, I had a loop, with double * stats1 = new double ;... (by declan)
2d Cellular Automata Implementation
 
After drawing some glyphs with glBitMap I wanted to see something animated so I thought now would be a good time to learn bitwise operations and do something wi...
[1 reply] : I guess this is solved, I found the problem: bool Cell::getValue(U... (by Gladdok)
Forward Declaring Private Methods
 
I'm new to OOP and trying to create a singleton that requires extensive initialization. I am declaring the private constructor in the header file and trying to...
[3 replies] Last: Thanks for spotting the incorrect qualification; I imagine that when I... (by lrreiche)
by arena
Creating an array of pointers
 
Hey everyone. I'm new around here. I need to create an array of class pointers, and I'm stuck. I have currently tried the following: dispenserType *p; ...
[5 replies] Last: Right - I guess I need to go read the tutorial. I guess that is why I... (by kempofighter)
Save instances of a class in a file?
 
Hello. Q1: I want to create a creature "dog" with id=1, and a creature "cat" with id=2, using the following class How can I store the instances in a file...
[4 replies] Last: Yeah it's possible, it's not how I would do it because you'll end up w... (by Computergeek01)
by michy
binary search
 
hi experts again, =) today i have a problem to ask about binary search. binary algorithm: int binarySearch(int x , int searchItem){ while(start <= end){ ...
[2 replies] Last: Well if you want to write an algorithm that finds all elements that ma... (by kempofighter)
Program code problems
 
Hi i have a college project that i need finished for next wednesday. Its C++ and im ok with it but finding myself constantly stuck. The problem im having at m...
[8 replies] Last: What's the format of your input file? From looking at your Readfile()... (by sammy34)
Working with graphics.
 
I'm working with graphics using dev c++. I Have some programming experience using c++ but this is my first time to use dev c++ as a compiler. I can't use the mo...
[2 replies] Last: First update your dev-c++ to wxDev-C++. After that which tutorial are ... (by Computergeek01)
Array handeling
 
Ok so I am trying to manipulate an array of game charaters with this little function. Here are the problmes I am trying to set a name to the charater.with the v...
[5 replies] Last: Internally, vectors store their objects in arrays. However, they can g... (by filipe)
by KOAB79
Syntax problem switching from Delphi to C++
 
Hi Hopefully this is simple. I am trying to implement FlexCel in my project and strugging so I am trying to do a simple dummy form which exports to excel us...
[1 reply] : An STL map, is a template container that can associate a string "prope... (by moorecm)
Reverse the order of bytes
 
Hello everyone. This is my first post in the forum. I am Italian, so forgive any spelling errors. I need to write to file (in binary mode) an integer (so 4 b...
[4 replies] Last: Thanks Duoas. Ps: interesting post. (by GliderKite)
by Rtop
Up/Downcasting pointer in inheritance
 
Assume I have derived class "Dog" , "Philosopher". and base class "Speaker". My professor called the method "void pontificate() const" , which are defined i...
[5 replies] Last: current = new Philosopher("I think, therefore I am."); This call ... (by Disch)
Inheritance issue
 
My code looks something like this: Bullet* bullet = (Bullet*)units ; //if it's not one of yoshi's bullets.. die :| if( bullet->getOwner(...
[3 replies] Last: Figured it out... It was just a minor problem actually ... I just forg... (by adikid89)
by zyky
Error: pointer of type `void *' used in arithmetic
 
Hello, I'm trying to create a dynamic array containing generic pointers: void* initTable(int size) { void* a = malloc(sizeof(void*)*size); for(int ...
[2 replies] Last: Ok, thank you very much Athar. (by zyky)
June 2010 Pages: 1... 1415161718... 26
  Archived months: [may2010] [jul2010]

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