Hi All,
My program has 2 threads, a MainThread and a ChildThread. Each thread has its own queue .
Every time the ChildThread receives data, it put in its queue and send that data to MainThread...
Type: Posts; User: dv007
Hi All,
My program has 2 threads, a MainThread and a ChildThread. Each thread has its own queue .
Every time the ChildThread receives data, it put in its queue and send that data to MainThread...
Hi All,
I am not sure all static variables define locally within a function is putting on stack memory or on the heap or global memory space.
Does anyone know?
Thanks!
DV007
class Foo
Please post your code even it does not compile, then we could help.
You can use bubble sort or quick sort algorithm to find highest GPA of students.
DV007
Dear Sir or Madam:
What I have learned in school is when dealing with character string(char array)
we need to use strcpy() function, but I wonder why doing arithmetic assignment
on char string...
Hi Salem,
You mean accessing to data members of class (in this case is an array of struct) would be:
void SetAge(int a)
{
Stud[20].age = a; // still error
Dear C++ experts out there,
I am trying to access to array of struct data fields in a class.
but compiler keep display error when access to struct fields.
How class methods can access to the...
class Base
{
public:
Base();
void SetData(int data) { m_data = data; }
int GetData() { return m_data; }
virtual void PrintData() { cout << "Data value: " <<...
Thank you all for your help.
nvoigt,
Since you typecast 3 times (entry point for each thread) as:
ControlManager* pThis = (ControlManager*)p;
Does it mean it creates three pointers...
Thanx for your attention.
Would you mind to show a specific example how to code them.
Using wrapper in C++ kinda confusing, especially when creating multi threads within an object. An object can...
Dear Sir or Madam,
I am trying to create 3 threads running paralelly in an C++ object . It is easy to create in C but it's hard and very confusing in C++ object.
#include <pthread.h>...
How about making another website:
www.C++programming.com
So far I have seen Cprogramming.com do a great job to help C people but not yet enough help
for C++ newbies/askees. Can we make another...
This is your best idiot answer you give to someone's questions?
If someone know to post their questions in appropriate place at
first time, then they would not bother some ******* attitude like...
>I don't think u can nominate anyone, just vote for Fordy.
So, it seem to me that it's not democratic and fair election, isn't it?
People wil not able to nominate their favorite candidate???
...
Hi All,
What's moderator?
How does moderator election process?
If a person win in moderator election, what kind of encouraged award will offer to him or her?
How many times per a year,...
Hi All,
What's moderator?
How does moderator election process?
If a person win in moderator election, what kind of encouraged award will offer to him or her?
How many times per a year,...
The think I am trying to understand is how to pass the callback function name to the util ().
any sample code should help.
-->Use pointer to function for callback() and
pass it into util()...
char g[10]; /*ten bytes*/
int main()
{
struct g {
int a;
};
printf("g is supposed to be (4)sizeof(a) %d",g);
return 0;
This question has been asked for millions times.
Try to search on this site, then ya will know!
Good luck
DV007
I agree with Bajor's point.
C# is cleanly designed from scratch to suport .NET
while VB and C++ .NET has been still underway of
enhancement and modification. They are not
perfect at present....
Minh,
Does VBasic GUI works well MS-Access for pc standalone application? Does it need DB
driver for front end GUI to communicate with
backend MS-Access database?
DV007
Sorry guys, I was misunderstood fastmonkey's
statments. I though fastmonkey tried to say
people on this board is stupid.
I always want to share my ordinary knowlege and experience as well as...
Sorry for misunderstood about fastmokey's statements.
Keep spinning the world guys!
DV007
This advantage of C++ STL is only useful in develop for certain applications but not quite support in wide range of software applications.
For example, STL is avoided to use in real-time
embedded...
I try to create a Dr. Appointment database project
with basically a GUI for user interface and a
database like MS-Access. I plan to use VBasic
or Visual C++ to implement it. But I have an
hard...
It's nice program, however you did not do alot
on data validation. For example, when I enter
an email address like: heygeek@@@##-2u.com, it
accepted, it should promt invalid email address
or...