Search:

Type: Posts; User: Robert Harp

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    4,811

    "Parsing" a PPM header...

    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
  2. Reading a PPM image into a 1d or 2d array

    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...
  3. Replies
    13
    Views
    2,389

    Okay so I'm doing this as a service to future...

    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...
  4. Replies
    13
    Views
    2,389

    I'm using uBuntu instead of windows, that could...

    I'm using uBuntu instead of windows, that could be why it laughs at my './a.out' and calls me a retard...
  5. Replies
    13
    Views
    2,389

    How do you compile that? I tried gcc triangle.c ;...

    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...
  6. Replies
    13
    Views
    2,389

    I believe so, except 640 columns and 480 rows....

    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...
  7. Replies
    13
    Views
    2,389

    PPM Vectors

    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)...
  8. Replies
    4
    Views
    2,184

    One of these days, Clemson is just gonna buy...

    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.
  9. Replies
    4
    Views
    2,184

    PPM Circle trouble

    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...
  10. Replies
    46
    Views
    21,517

    I'm gonna go out on a limb and say you're in...

    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.
    ;)
  11. Replies
    9
    Views
    5,352

    Lab's over, thanks for all the help, everyone. I...

    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>
  12. Replies
    9
    Views
    5,352

    So lines 8-10 need to come outside the main...

    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...
  13. Replies
    9
    Views
    5,352

    Thanks for the reply. I'm between classes trying...

    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...
  14. Replies
    9
    Views
    5,352

    Entering Country Codes to display flags

    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...
  15. Replies
    3
    Views
    1,251

    I appreciate the feedback, I didn't put in the...

    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...
  16. Replies
    3
    Views
    1,251

    Can't understand NetBeans

    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...
  17. Replies
    5
    Views
    1,099

    It gave a huge list of errors, I just brainfarted...

    It gave a huge list of errors, I just brainfarted and didn't think about "intmain()" being "int main()" ... It worked fine after that.
  18. Replies
    5
    Views
    1,099

    Appreciate the feedback, I'll give it a run. ...

    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!
  19. Replies
    5
    Views
    1,099

    Help with Loops

    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...
Results 1 to 19 of 19