Need help here...
Writing a program that reads in a PPM image, modifies it, and spits it back out.
I can make it work for a regular PPM header, like this one:
P6
690 461 255
Type: Posts; User: Robert Harp
Need help here...
Writing a program that reads in a PPM image, modifies it, and spits it back out.
I can make it work for a regular PPM header, like this one:
P6
690 461 255
I have an assignment where I need to take an assigned image, rotate it 90 degrees to the right, flip it upside down, and turn it to grayscale; each with different outputs.
I was thinking if I can...
Okay so I'm doing this as a service to future people with problems coding a triangle in C.. Here is my full code for the program.
I included a .h file for extra credit, I know it was useless in...
I'm using uBuntu instead of windows, that could be why it laughs at my './a.out' and calls me a retard...
How do you compile that? I tried gcc triangle.c ; ./a.out > out.ppm gave me an error out.ppm not found...
The way we compile PPM images is
gcc *.c
./a.out > *.ppm (this is where you name it...
I believe so, except 640 columns and 480 rows. The background is longer than it is tall.
I meant a vector in the Geometric sense. Like a line segment. If I can print the line segments and just set...
I'm having a rough time trying to make a PPM image of a triangle given three points. If I can get the points into vectors, I can just say that
if (((x > AC) && (x < BC) && (x < AB)) && ((y > AB)...
One of these days, Clemson is just gonna buy cprogramming.com.
Negative, ghost rider. The class is C PROGRAMMING I.
Lemme see if I can just upload a pdf of the assignment. Yup I can.
I have an assignment where we have to make a PPM image that has a circle at center (225, 175) and a radius of 75. Basically a 640 x 480 black backround with an orange circle at the forementioned...
I'm gonna go out on a limb and say you're in Srimani's class at Clemson and it's due Thursday. What section are you in?
You beat me at creating a thread.
;)
Lab's over, thanks for all the help, everyone. I really appreciate it.
I didn't get it working but i still need to know this stuff.
This is as close as I got:
#include <stdio.h>
So lines 8-10 need to come outside the main function?
I am so lost I don't know where to begin.. And this is due in 9 hours >.<
I literally have no idea what's going on here. The output is...
Thanks for the reply. I'm between classes trying to figure this out and I'm still lost. I'll have a little more time later to get it done... But can someone just check over what I have right now and...
I have a lab at Clemson that we have to construct a C program that produces the respective images of flags (France, North Rhine, Westphalia, Gibon). Basically the outcome is to have a program that...
I appreciate the feedback, I didn't put in the EXACT code. The code in the book included a function for finding if the given year was a leap year. I apologize for the time wasting, apparently I just...
I'm having trouble understanding what Netbeans is trying to tell me. This isn't Homework at all, just practice. It says that there is a problem with the main () and turns line 43 red, and then a...
It gave a huge list of errors, I just brainfarted and didn't think about "intmain()" being "int main()" ... It worked fine after that.
Appreciate the feedback, I'll give it a run.
@WaltP - I'm a student at Clemson, I just use what they tell me to...
EDIT: Works now. Thanks a bunch!
I'm just starting out with C and I'm off to a bad start. First off, this isn't homework, this is just me trying to familiarize myself with the idea of the Loops. I have two programs, neithither of...