Search:
Type: Posts; User: asilvester635
Search:
Search took 0.02 seconds.
-
February 17th, 2017, 05:44 PM
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: ...
-
February 17th, 2017, 12:55 AM
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...
-
February 16th, 2017, 05:53 PM
It works perfectly now. Thanks.
-
February 16th, 2017, 05:48 PM
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...
-
February 16th, 2017, 04:22 PM
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...
-
February 16th, 2017, 03:19 PM
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,...
-
February 10th, 2017, 01:26 PM
-
February 10th, 2017, 12:29 PM
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...
-
February 8th, 2017, 02:40 PM
-
February 8th, 2017, 01:25 AM
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. ...
-
February 3rd, 2017, 04:27 AM
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...
-
January 28th, 2017, 11:40 PM
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.
-
January 28th, 2017, 07:12 PM
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...
-
January 28th, 2017, 07:10 PM
Thanks, yes I saw my error.
-
January 27th, 2017, 07:10 PM
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?...
-
January 27th, 2017, 06:34 PM
How do I go about this in c++?
-
January 27th, 2017, 02:04 PM
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...
|
Click Here to Expand Forum to Full Width
|