Questions tagged [initialize]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
47 views

Initialize the variable

I'm wondering why example one of the code doesn't work and example two does. The only change is the repetition of 'float'. The error I get are: unused variable and uninitialized variable. Would just ...
0
votes
1answer
1k views

Pset4 - Recover (usage of sprintf)

When I am working on Pset4 - Recover, I realize I do not understand the concept of array and pointer. Although I finally worked it out, I would be very grateful if you guys can explain the following: ...
0
votes
0answers
24 views

Issue Initializing variable

I hope someone can help clear this up for me. If I use this I get an error: int i = GetInt(); https://gist.github.com/anonymous/7707d2b851d40106c525#file-gistfile1-txt I get an error... but if I ...
0
votes
2answers
1k views

Why is my array of RGBTriple not working?

I know there are a lot of questions surrounding this topic. Read 'em, still having trouble. The common suggestion here for declaring an array of RGBTriples is something like the following: ...
0
votes
0answers
64 views

Initializing a variable in a struct, then in a function

It won't allow me to initialize the array to NULL in the struct in the header file: typedef struct frog { bool is_frog; struct frog* french_chef[10]; // eg = {NULL}; } frog; which I get, but ...
0
votes
2answers
679 views

initialize doesnt capitalize

This is my code for initialize....what did I do wrong and what can i do to fix it. #include <stdio.h> #include <cs50.h> #include <ctype.h> #include <string.h> #include <...