Hi! I was looking for some help on this matter and found this: http://bytes.com/forum/thread643133.ht ml which... I didn't 100% got.
So... I'll try to explain what I need:
array[0] = "First string"
array[1] = "Second string"
array[2] = "This is the third one"
.
.
.
array[n] = "Hola"
I have a dynamic array of fixed-length strings. At the very...
User Profile
Collapse
-
Ok, thank you very much.
That's all I needed to start my B+-tree... That is, if I can do it ;-) -
Hash function
Hi there!
I have to do a B-tree, which can use strings or ints as keys. Anyway, keys can be repeated, and I have to use a has function in order to converto from string to int...
My teacher said he doesn't care about the function we use, and that he wouldn't care if we used an already done one. He even told us we didn't loose time in implementing one ourselves.
The thing is, I haven't find one... COuld you help... -
Thank you very much for your help. i decided better to work on Linux... I hope it works... hasta luego!!Leave a comment:
-
Well, than you very much
I joined the community of Qt.
But I already downloaded and installed Qt. What I can't do, is to be able to use Qt libraries with Dev-C++.Leave a comment:
-
Hi! I'm trying to do a simple JDOM example, as I have to uste it for a homework... The thing is, it just doesn't work...
See, this is the code:
...Code:public class Ejemplo { public static void main(String[] args) { try { SAXBuilder builder=new SAXBuilder(true); Document doc=builder.build(new File("liga.xml")); //here'sLeave a comment:
-
How to install QT
Hi!!
I'm new (completely new) at C++. I'm trying to use QT for a homework. I can ONLY use QT or GTK, and I think QT is a lot simpler. I got only two week for this project, so there's no time I can waste.
The thing is... How do I install QT?
I followed all of the steps in this page: http://darkhack.googlepages.com/qttutorial
It didn't work. At all, so I entered to this page This site is in french...... -
JDOME: Could not load default SAX parser
Hi! I'm trying to do a simple JDOM example, as I have to uste it for a homework... The thing is, it just doesn't work...
See, this is the code:
...Code:public class Ejemplo { public static void main(String[] args) { try { SAXBuilder builder=new SAXBuilder(true); Document doc=builder.build(new File("liga.xml")); //here's -
Another thing I noticed...
If I put, ont he button "Accept" to call eventoColores (or colorEvents, I changed the name in here for it to be in English), the windows appear for player 1,2,4,8,16... you get the picture...
Why is that?
What can I do?
Also, everything appears, except some combo Buttons...
While I was writing this, the answer came... I will write what I did, it may help...Leave a comment:
-
Thank you so much... I almost had a heart atack when I saw the Runnable and SwingUtilities thing... I'll take a look at it!!
THANK YOU VER VERY VERY MUCH!!!
:D...Leave a comment:
-
-
But I'm using swing components!!
All of them!!
This gives me the creeps T_TLeave a comment:
-
Well, I think I discovered the reason. It seems the mouse gets the label (where the board is drawn) pixels, but the label is drawn according to the frame pixels, which messes it all up.
The thing is... How to change it?
The mouseMotionList ener is on boardLabel...
Wait... Got it!!
Anyway... How could I eliminate the flickering?Leave a comment:
-
Display a frame N times // Desplegar una ventana N veces
Hi!
Well, this is my question.
I have a Chinesse Checkers game, so there's a comboBox to choose number of players. A global variable named numJug (number Of Players) gets that number. So far, so good.
The problem starts when you click "Accept" on that window, as it calls N times (numJug times) the window for chosing the color for every player. The thing is, it doesn't work. For 6 players, the window only appears... -
Eliminate Flickering // Eliminar parpadeo
Hello!
I'm doing a chinese checkers program. What I want to do is the selected marble to "follow" the mouse pointer. The thing is, When I try to use labels, the label doesn't follow the mouse. I thought that problem would be solved by adding n to x and to y, but that's not the case.
Let me explain myself. If the mouse draws a big circle, the label draws a small one (imaginary, of course). It kinda follows the mouse,... -
Well, she needed it, but we asked and the teacher explained her, thank you anywayLeave a comment:
-
Mmm... well, I ask her about her code
But I don'r think she joins, as she only has one programming course in her carrer, so...Leave a comment:
-
Escape from a program
Hi there!
A friend of mine that's learning C++ needs to know how to make Escp work on her program. That means, whenever you press ESCP, the program finishes. How van her do that?
¡Gracias de antemano! -
Thank you, but... It still doesn't work
The problem is it keeps reading foreverLeave a comment:
-
How to make a buffer?
Hi! I made this code in order to "create" a buffer...
It works perfectly when reading from console, but it just doesn't work for redinf from files.
(Read after the function for the code explanation)
NAME is a class variable, char*
...Code:void buffer(FILE* entrada, char separador) //entrada is input (sdtin for consol) { int numChars = 2; //# of characters read
No activity results to display
Show More
Leave a comment: