CORBA = Common Object Request Broker Architecture
It is a communication package that is language and operating system independent (or so it claims, I have had some configuration issues with it),...
Type: Posts; User: sigma
CORBA = Common Object Request Broker Architecture
It is a communication package that is language and operating system independent (or so it claims, I have had some configuration issues with it),...
To summarize:
With cable you share bandwidth with your neighbors.
With DSL, the bandwidth decreases with distance from the telephone distribution hub.
Pick your poison.
This brings up an arguement from work. Some argue that C++ is not a true object oriented language, it is only an imitation of OO. Some even go further to state that Java is not OO since it has...
C is a slight bit faster than C++ at the follwoing times:
- allocation and de-allocation, C does not go through a constructor or destructor. If you allocate a structure in C and then call a function...
On a unix platform, I can use the nm command to see the name space for data items and functions. If MS has a similair command, you will see that stuctures and classes are exactly the same after the...
Do this:
- define a structure
- declare an array of at least 2 elements
- in the program print out the addesses of each element in each structure
then:
- define a class
- declare an array...
Add 2:
Most professsional programmers I work with are not super smart. To be successful, I have found that you need two basic qualities:
1. Be able to research
2. Be able to break down a...
http://www.cprogramming.com/cboard/showthread.php?s=&threadid=14134
This thread should be added to the FAQ. I have seen numerous request on how to convert an integer or character to binary. I get...
I'am currently looking at IDE's for C/C++. I would appreciate any recommendations, especially from professionals about what they have used.
Requirements:
- Supported on IRIX 6.5 and on Linux
-...
Try one of these:
tolower(int); I believe it is defined in types.h
or
char tolower(char in) {
if(in >= 'A' && in <= 'Z')
return in + 'a' - 'A';
else return in;
}
In the ASCII character set,...
In C++ it is done with function overloading.
In C you can pass an additional parameter that declares the type of the other parameter. ie:
void square(int type, void *value)
switch(type)
{...
Look at the man page for 'setitimer'
I think it is a good idea. We would need to identify "subject matter experts" for different areas, like MFC, Motif, Windows networking, UNIX networking, algorithms, refactoring, unit testing,...
My experience is in mathmatics, C, X-Windows, UNIX, inter-process communications. (I work on a simulator for the military that is DIS and HLA compliant) So if you have a need, I will offer my...
All right, I have not seen a good flame war in here since Sunlight and Dean. Here is nothing. I have had co-workers who would go out of their way to point out a mistake to management. It seemed to...
Some pure C compilers will indentify this as an error just like a C++ compiler will (ie MIPSPro C 7.2).
My view is that the stronger type checking you have the greater portability the code will...
First, 'name' is declared as a char *, is memory ever allocated for it? If it not allocated, when you do this:
You are setting memory to NULL at what ever trash value 'name' had in it when it was...
I just post code for a parsing stream readr written in java that read a line and then returns an array of strings. The code is here:...
Here is an example written in java that will read a string from a file and return an array of strings. It should be easy to adapt it to C /C++.
import java.net.*;
import java.io.*;
public...
In MOTIF, I can get the text from any item that is displayed. Then parse it to count the printable characters. MFC should have a similair function.
malloc returns a void * which means that when you use malloc, you will need to cast the return value to the type of pointer you want.
Change the above line to:
*treePtr = (treNode...
I edited the algorithm I posted before and added one line to it.
It works for most cases, but will need to be modified to work for every case.
char tempStr[128];
FILE *fPtr = fopen("NEW.TXT", "r");
while(!feof(fPtr)) {
fgets(tempStr, 80, fPtr);
fprintf(stderr,"%s\n", tempStr);
}
Use a circular class to implement it. That is, when a value like the hours goes above 24, it resets the hours to 0 and increments you day variable, if you have one.
On a project, we had to do...