Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Arrays in C-variable declaration???
Name: Dado Date: November 22, 2003 at 16:21:28 Pacific OS: Me CPU/Ram: 512MB
Comment:
I would like to know how to declare variables for arrays when the size of the array is not known, thus it is event- controlled (ex. sentinel vaue of 0) . For example: int array1[4] declares a one dimensional array variable for holding integer values for array1 of 4 things. How can I declare this if I did not know the number of objects and needed to use sentinel values to stop the reading and define the size? Help is appreciated!
Summary: Hi, I don't know how to do the following because I don't know how to use the string array in C++. Please Help!!! Thanx! #include <iostream.h> #include <string.h> class pizza { private: char**...
Summary: I've been trying to make a vector of arrays in c++: vector<char[16]> but, apparently, that doesn't work. So, I've been trying to figure out how to make vector<vector<char> > but I need the c...
Summary: Hello, I've got a problem putting together dynamic arrays in C. I can do it fine in C++ but I've never had any real instruction in C and all of this malloc() business isn't getting through to me. Her...