Hi, i'm a bit lost by using C++.
I want to store the adresses of each instances of a classe in an array of pointers.
Here is a sample of what i'm trying to do :
class object{
...
};
main()
{
object **a_objects;
a_objects = new (* objet)[10];
objet myobject1();
a_objects[0] =...
I agree, kbhit() work only in DOS or command application.
So my previous example work on Win9x an NT4.0 .
But if you're application is within a window, you'll have to learn more about Virtual Key and WNDPROC callback function.
Here is the same example but in a window format ...
Here I am.
I hope you can use kbhit(). It doesn't work on UNIX, LINUX and ANSI.
See this simple program which print the code of the Key you pressed.
#include <stdio.h>
#include <conio.h>
int main()
{
char key=0;
while( key != 27 )
{
while( !kbhit() )
{
}
key =...
I give you hand.
Try to learn more about stdio.h and more particulary about fopen (open a file), fclose (close a file), printf (print string to standart output), fread (read a file).
There are many other way to manipulate files but it's spending to much time to speak you about.
As said...
I think you can rebuild some librairy with your own assembleur code.
But stdio.h isn't very heavy to use and I don't understand why you don't want to use it.
Hi,
I try to help you as I can by giving you a function.
I don't test this but I think it should correctly work.
typedef struct node anode;
/* Don't forget to initialize new_node->prev & next with NULL */
void AddNode( anode any_node, anode *new_node )
{
void *cur_node;
if( any_node !=...
In the following lines of codes, I tried to insert some records of a table into another. There is a cursor witch has an ORDER BY clause on the field N_RIB. The insert comes after some work.
Just a example of what's going wrong :
Source Table N_RIB : 2, 3, 1
Program Insert Work : 1, 2, 3...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.