This code would set the terminal to raw mode.
code:--------------------------------------------------------------------------------
#include <termios.h>
#include <unistd.h>
#include <stdio.h>...
Type: Posts; User: rdnjr
This code would set the terminal to raw mode.
code:--------------------------------------------------------------------------------
#include <termios.h>
#include <unistd.h>
#include <stdio.h>...
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...
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...
Does anyone know if you can use KDevelop to create console apps?
Please ignore the performance part of that question, I just noticed the previous reply....
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...
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...
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.
...
Thanks, that worked. Do you know where I can get the information you mentioned about the linking process?
(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...
Thanks guys. Both ways work.
How would I convert an int to a character string? ex...
int number = 534;
char str[4] = {some funtion here}(number);
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...
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...
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...
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...
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...