CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: asilvester635

Search: Search took 0.02 seconds.

  1. Replies
    6
    Views
    17,960

    Re: Reading PPM format images

    I've successfully stored the header (P6, 650, 652, and 255)) in their right variables (I know because I tried printing their values and they came out right).
    My output is shown below.

    Output: ...
  2. Replies
    6
    Views
    17,960

    Reading PPM format images

    I’m trying to read this PPM format image, which contains an ASCII header followed by binary pixel data. The header consists of something like this:

    P6
    650 652
    255

    P6 indicates that it is a...
  3. Re: Returning and receiving an unsigned char array

    It works perfectly now. Thanks.
  4. Re: Returning and receiving an unsigned char array

    I got it. I changed the portion where I fill in the array inside my makeArray function to the code below. I declared that the array is of size 2, but I never really initialized the last storage...
  5. Re: Returning and receiving an unsigned char array

    Hey, I'm programming in C. Yes I meant (b). Ultimately I want to store the pointer to an unsigned char* array that I made in makeArray() into an unsigned char* array that I created in main.cc. How do...
  6. [RESOLVED] Returning and receiving an unsigned char array

    Why is this giving me a problem? How can I fix it? I'm basically passing a size containing a value of 2 to the makeArray function. Then I make an unsigned char* array Inside the makeArray function,...
  7. Replies
    2
    Views
    3,148

    Re: "Abort trap" error in c++

    thanks
  8. Replies
    2
    Views
    3,148

    "Abort trap" error in c++

    I have an array of size 8, and I send only the second half of the array to my insertion sort. It successfully sorts only the second half of the array, but there is a statement at the bottom, "Abort...
  9. Re: Reversing an array using pointers

    Thanks. I fixed it.
  10. [RESOLVED] Reversing an array using pointers

    I have this program that makes and populates an array. Then it is sent to a function called reverse, which reverses the order in the array. The compiler keeps giving errors. I'm not quite sure why. ...
  11. I need help with pointers (& and *) and functions

    I'm trying to return the pointer to the variable that has the bigger value using pointers & and *. Below is the source code for my main.cc, functions.cc, and functions.h files. What did I do wrong...
  12. Replies
    1
    Views
    1,816

    Re: How to use a makefile

    I'm using a Macbook pro and sublime text 3 for my text editor. I'm also using my computer's terminal to compile my code.
  13. Replies
    1
    Views
    1,816

    How to use a makefile

    I've written a makefile and saved it under the name "MakeFile" (provided below) for my program. It's in the same folder as my programs.

    all: main

    main.o: main.cc Greetings.cc
    g++ -c -Werror...
  14. Re: How to know whether char is signed or unsigned on your system?

    Thanks, yes I saw my error.
  15. Re: How to know whether char is signed or unsigned on your system?

    I got help from someone. So we are basically setting char variable x with 255. Then if x is less than 0 then char is unsigned, signed otherwise. Can you explain what is happening when char x = 255?...
  16. How to know whether char is signed or unsigned on your system?

    How do I go about this in c++?
  17. How to compile a c++ program using the terminal on a mac

    I'm currently learning c++, and I have trouble compiling it via my Macbook pro's terminal.

    Below is a simple code that I wrote.



    #include <cstdio>
    //using namespace std;

    int main (int...
Results 1 to 17 of 19





Click Here to Expand Forum to Full Width

Featured