Search:

Type: Posts; User: sigma

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Thread: Cobra

    by sigma
    Replies
    6
    Views
    2,435

    CORBA = Common Object Request Broker Architecture...

    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),...
  2. Thread: Cable or DSL?

    by sigma
    Replies
    26
    Views
    5,259

    Poll: To summarize: With cable you share bandwidth...

    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.
  3. Thread: Why learn C?

    by sigma
    Replies
    31
    Views
    6,857

    This brings up an arguement from work. Some argue...

    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...
  4. Thread: Why learn C?

    by sigma
    Replies
    31
    Views
    6,857

    C is a slight bit faster than C++ at the...

    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...
  5. Replies
    24
    Views
    2,851

    On a unix platform, I can use the nm command to...

    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...
  6. Replies
    24
    Views
    2,851

    Do this: - define a structure - declare an...

    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...
  7. Thread: Random Numbers

    by sigma
    Replies
    2
    Views
    942

    Add 2:

    Add 2:
  8. Replies
    12
    Views
    8,538

    Most professsional programmers I work with are...

    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...
  9. Thread: Addition to FAQ

    by sigma
    Replies
    2
    Views
    1,618

    Addition to FAQ

    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...
  10. Replies
    0
    Views
    2,145

    IDE Recommendations

    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
    -...
  11. Thread: bitmask

    by sigma
    Replies
    3
    Views
    2,389

    Try one of these: tolower(int); I believe it is...

    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,...
  12. In C++ it is done with function overloading. ...

    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)
    {...
  13. Replies
    3
    Views
    1,326

    Look at the man page for 'setitimer'

    Look at the man page for 'setitimer'
  14. Thread: Tutorial Idea

    by sigma
    Replies
    3
    Views
    2,428

    Poll: I think it is a good idea. We would need to...

    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,...
  15. My experience is in mathmatics, C, X-Windows,...

    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...
  16. Replies
    56
    Views
    9,734

    All right, I have not seen a good flame war in...

    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...
  17. Replies
    6
    Views
    1,076

    Some pure C compilers will indentify this as an...

    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...
  18. Thread: constructor??

    by sigma
    Replies
    3
    Views
    1,021

    First, 'name' is declared as a char *, is memory...

    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...
  19. Replies
    1
    Views
    818

    I just post code for a parsing stream readr...

    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:...
  20. Here is an example written in java that will read...

    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...
  21. Replies
    3
    Views
    1,224

    In MOTIF, I can get the text from any item that...

    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.
  22. Replies
    6
    Views
    1,076

    malloc returns a void * which means that when you...

    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...
  23. Replies
    12
    Views
    1,513

    I edited the algorithm I posted before and added...

    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.
  24. Replies
    4
    Views
    3,890

    char tempStr[128]; FILE *fPtr = fopen("NEW.TXT",...

    char tempStr[128];
    FILE *fPtr = fopen("NEW.TXT", "r");

    while(!feof(fPtr)) {
    fgets(tempStr, 80, fPtr);
    fprintf(stderr,"%s\n", tempStr);
    }
  25. Replies
    3
    Views
    7,703

    Use a circular class to implement it. That is,...

    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...
Results 1 to 25 of 61
Page 1 of 3 1 2 3