I have written a chatterbot in C++,basicaly what i want to know is that if there is anyway that i could manage to put it on my website to make it available for a direct conversation with the visitors. Do i really have to rewrite the entire code in a scripting language like JavaScript or is there...
I have created a very basic MFC Application but when i run it, it use 100% of my CPU resources. Here is the code:
#include <afxwin.h>
class CDrawingApp : public CWinApp {
public:
virtual BOOL InitInstance();
CDrawingApp() {};
};
class CMainFrame : public CFrameWnd {
public:
CMainFrame() {...
Is it possible to modify the value of a variable declared in a class by calling an object created outside that class?
here is an example:
class CMyClass {
public:
CMyClass() { m_nNum = 0; }
void OnPaint();
void Draw();
BOOL m_nNum;
...
..
};
.....
#include "myclass.h"
.....
void...
I have created an MFC application for drawing poligons,i have a window which is the main window for the program,i use this window to display the image of the poligons. ( i have created a class to handle the routines for the main window) But before to start drawing a polygon, i use 2 Dialog Boxes...
any body can tell me what is a thesaurus active x component? I mean,i understand a littlebit what the term active x component means but i dont think i understand the word thesaurus.
What is the proper syntaxe for declaring a function that takes another function as parameter?
i think that i know how to do it in C but i can't figure it out in C++. The reason why i'm asking this is because
my functions are declared in a class.(ex: class MyClas)
Hi,
i would like to ask about reading data from control port?
control port one of the registers of parallel port.
if i made a program to read data from this register what is the maximum value i got from this port?
this code shows how to read control port( 890 = address of it)
code : start...
what i need to know exactly is how i could read the bytes that reach the parallel port each 1ms (for example), and then use those data bytes to represent a sin wave on the coordinate system?
which means each byte will be read according to timer then the data will be converted to its decimal...
what i need to know exactly is how i could read the bytes that reach the parallel port each 1ms (for example), and then use those data bytes to represent a sin wave on the coordinate system?
which means each byte will be read according to timer then the data will be converted to its decimal...
******************************************************************************
I have used the following code sample to save a tree structure to a file:
fp = fopen( "tree.dat", "wb" );
if( !fp ) {
cerr << "Error while saving tree" << endl;
break;
}...
I need some help for implementing a n-ary tree.I have found information on the internet on how to implement a binary tree and binary search tree,but i still can't figure out how to use the same procedure to write some code for a n-ary tree.I need to be able to do the following operation on the...
I need some help for implementing a n-ary tree.I have found information on the internet on how to implement a binary tree and binary search tree,but i still can't figure out how to use the same procedure to write some code for a n-ary tree.I need to be able to do the following operation on the...
*********************************************************************************
i'm trying to make some drawing with the mouse,for that purpose i have wrote the following code but there is no results displayed on the window.I can't find what's wrong with the code:
[code]
void...
I'm writing a program that detects which buton on the keyboard that the user have hit.How would i detect butons that are the combinaison of two characters( ex: delete, pageUp, pageDown, etc ).
********************************************************************************************
If you've ever wanted to count the lines of your code without the comments and blank lines ,here is a piece of code that
i have wrote that will help you do it.
#include <stdio.h>
#include <string.h>...
********************************************************************************************
If you've ever wanted to count the lines of your code without the comments and blank lines ,here is a piece of code that
i have wrote that will help you do it.
#include <stdio.h>
#include <string.h>...
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.