Excellent idea, thank you. At a glance it doesn't seem like it will be too difficult, but I know projects are never (almost never) as simple as they look.
Type: Posts; User: Ludicrous
Excellent idea, thank you. At a glance it doesn't seem like it will be too difficult, but I know projects are never (almost never) as simple as they look.
Hi everyone, I'm trying to come up with a meaningful low level project to work on in C.
The only two meaningful low level projects I have worked on include compression and encryption.
In school...
anduril462,
The links you provided were very helpful, I made the edits you and Salem recommended. Thank you guys very much, now it's time to tackle a major beast since this test code is now...
Salem,
1. I'll look into that, I didn't really give it much thought.
2. THANK YOU!
3. lol, yeah
4. didn't know that, i'll check out the faq
THANK YOU!
The goal of the program is to read in any file, exe, mp3, etc. and make a working copy of it. Here's my code:
#include <stdio.h>
#include <limits.h>
#include <string.h>
#define BUFFER 1...
Ok, I found the problem, generally I use arrow keys as part of the real program, so the problem lies in that an arrow key is actually 2 inputs I believe
Oddly enough, the fix seems to be this:
Correct me if i'm wrong, but this this how a do while loop is read:
Do the loop once
Check condition
Do loop again
Check condition
Hey, I am trying to work my way though a very simple problem, but I can't seem to figure it out. I am trying to learn why my do while loop runs twice after one key input. I expected the output to...
Thank you everyone for answering my questions.
I don't fully understand the issue with printing an integer as a float (Not that I would intentionally do this), however I know what to look for...
I tried to program a test to see which variable gets assigned a float in the code:
printf("%.2lf\n", (float)(A+B-C*D/E-F+G*H/I));
however, I couldn't figure out how to test for this.
I...
So far my idea is that if there is a statement that has conflicting syntax, but is still compiliable like :
printf("%.2lf\n", x);
printf("%.2lf\n", 1+2-3*4/5-6+7*8/9);
it will merely...
Here is another interesting problem:
#include <stdio.h>
int main()
{
float x;
float y;
Ah, I found a mistake in the codeing:
printf("%.2lf\n", 1+2-3*4/5-6+7*8/9);
produces an integer, and using %lf is the wrong syntax for an integer. I assume, when you display an integer...
Is 1+2-3*4/5-6+7*8/9 by itself assumed to be solved using only integers?
if x is assigned as a float, wouldn't the equation be solved using float numbers?
It is still a little confusing
I have this program:
#include <stdio.h>
int main()
{
float x;