Please don't use Conio.h!
Its a horrible, horrible thing, and it'll leave you with no friends.
Type: Posts; User: Poincare
Please don't use Conio.h!
Its a horrible, horrible thing, and it'll leave you with no friends.
can you give us a little bit of context? (the full code, or the whole class or something?)
Thanks for the suggestions.
As for the classname, originally the project was called C64, which was changed cause of the commodore 64 thing, then it was e64 which was obvious why it was changed and...
I wrote a game engine this weekend. Its 2d, extremely easy to use, event based and cross platform. The main benefit is clean code, combined with the ability for complete control over the internals....
Exactly what the title says. Post here! The maximum I've done (in a day) is probably 470 lines of code.
Most of the time, using the shell isn't a very good way of doing this especially if library calls are available for the exact purpose...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void mirror(int x) {
unsigned u;
memcpy(&u,&x,sizeof(int));
printf("%u\n",u);
if (u) mirror(u/2);
}
AFAIK, the shell commands that you're giving aren't related to each other. This is a much better way to do it (I assume you're on linux/unix/bsd): File Access and Directory System Calls
examples of writing a USB driver?
Hi. I have a few question about USB on linux. Firstly, how do I know which file descriptor in the /dev/ section is USB? Secondly, how can I write raw code to it? Would I have to write a kernel level...
This is perfectly the reason why you don't use DOS for graphics. Learn opengl.
Python doesn't even have references (afaik), perl does.
Yup. It is.
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <sys/types.h>
int main (void) {
struct time_t alloc;
In this thread, we first start with a simple "hello, world" program and then each person that replies adds 1-5 lines to program. No more than five lines may be added at a time. NO double posting....
CGI is pretty old technology and has many replacements and its pretty (very) annoying to implement in C. Just sayin'. Consider a web framework if you can instead.
I've been checking the following websites
gnu.org (still in progress)
code.google.com
sourceforge.net
x[]=" "
doesn't mean anything because when the left hand side isn't a declaration, it expects a value between []. Also, char x[] has the same problem. Instead, you could go with:
char x[];
...
anyone?
I'm a pretty intermediate c programmer, i have been programming in C constantly since more than year. When I say constantly, I mean nonstop. I've been looking to get into some open source...
Get familiar with unix/linux (especially man pages) or type in man scanf and see what you get.
Did you read what I posted? If you write cleaner code, more people will respond to you. I'm not trying to be mean or anything, but this troubled me quite a bit when I was beginning (which I still am).
You seriously need to use getaddrinfo.
I've read Beej's guide to network programming and I'm trying to write an echoserver. So far, its just been frustration. I just can't get it to work. I just deleted all my code because I can't get...
I'm writing a program to draw a mandelbrot set. I started in Java but its just way too tedious. But, in C, I don't want to waste time learning OpenGL just to plot a few hundred points. Is there a...
I've been trying to write a math engine in C. Well, i've had a really really really hard time parsing all the inputs and stuff with see with the continious shower of seg faults. I want to switch to...