Search:

Type: Posts; User: rdnjr

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    2,617

    This code would set the terminal to raw mode. ...

    This code would set the terminal to raw mode.


    code:--------------------------------------------------------------------------------
    #include <termios.h>
    #include <unistd.h>
    #include <stdio.h>...
  2. Replies
    4
    Views
    2,617

    inkey$

    you would use it like this:

    a$ = inkey$
    <process on a$>

    inkey holds the current keypress. What he needs to know is how to use the termios struct to get non-canonical <sp?> input. I don't...
  3. Thread: extern const?

    by rdnjr
    Replies
    1
    Views
    3,912

    extern const?

    In my main function I have a const integer declared as a global variable. When I try to use extern const int <name> in another module, the linker tells me that it is an undefined reference. It will...
  4. Thread: Linux c ide

    by rdnjr
    Replies
    8
    Views
    4,227

    KDevelop

    Does anyone know if you can use KDevelop to create console apps?
  5. Replies
    16
    Views
    12,654

    oops

    Please ignore the performance part of that question, I just noticed the previous reply....
  6. Replies
    16
    Views
    12,654

    ref vs. pointers

    I have a question on this subject.

    If you have an array of pointers to objects on the free store. You make sure that none of the pointers are NULL and if the address of these objects will never...
  7. Thread: global variables

    by rdnjr
    Replies
    0
    Views
    2,594

    global variables

    This will probably spark a controversy, but here it goes. If I have an array of 128 pointers to objects on the free store, would it be more efficient to declare them in main() and just pass the...
  8. Replies
    14
    Views
    2,335

    I'm a mediocre programmer, but I'd like a stab at...

    I'm a mediocre programmer, but I'd like a stab at this one myself. Correct me if I'm wrong guys, but this just seems more readable.


    ...
  9. Thread: include's

    by rdnjr
    Replies
    2
    Views
    877

    Thanks, that worked. Do you know where I can get...

    Thanks, that worked. Do you know where I can get the information you mentioned about the linking process?
  10. Thread: include's

    by rdnjr
    Replies
    2
    Views
    877

    include's

    (Can/How do) you include a header file into two different functions that will be compiled into the same program?! ex...


    // main.c

    #include <iostream>

    #include "cat.h"

    using namespace...
  11. Thread: itoa???

    by rdnjr
    Replies
    13
    Views
    2,541

    Thanks guys. Both ways work.

    Thanks guys. Both ways work.
  12. Thread: itoa???

    by rdnjr
    Replies
    13
    Views
    2,541

    itoa???

    How would I convert an int to a character string? ex...

    int number = 534;
    char str[4] = {some funtion here}(number);
  13. Thread: const extern

    by rdnjr
    Replies
    2
    Views
    1,164

    const extern

    I am trying to initialize an array in one of my header files from an external constant number, but I get the error: size of member 'arraysize' is not constant. Am I going about this wrong, or is...
  14. Thread: Telnet Server

    by rdnjr
    Replies
    4
    Views
    3,135

    Found what I needed.

    I'd like to thank everyone that helped me on this. To anyone that might be interested in this subject, I've found a website that has compiled ALL the telnet rfc's into an understandable document at...
  15. Thread: Telnet Server

    by rdnjr
    Replies
    4
    Views
    3,135

    I've made a daytime server and I don't have a...

    I've made a daytime server and I don't have a problem sending data to the client. My current problem is that the client keeps sending "xterm" string like it's waiting for my program to acknowledge...
  16. Thread: Telnet Server

    by rdnjr
    Replies
    4
    Views
    3,135

    Telnet Server

    I currently have a program that has its own client to communicate with it over the network. What would I have to do to rewrite the server to accept and understand connections from a standard telnet...
  17. Replies
    2
    Views
    1,419

    Cursor Positioning

    In QBasic you could write:

    locate 5, 5
    print "Hello"

    And it would print the string wherever you wanted onto the console. What function does this in c++ and in what header file? I'm using...
Results 1 to 17 of 17