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.
Exit for loop with arrays in C?!
Name: Dado Date: November 24, 2003 at 22:12:15 Pacific OS: Me CPU/Ram: 512MB
Comment:
In C, how can u read values into an array (ex. array[row][col]) and exit from the for loop right after the user types 0 in the 1st column of any row? Can someone give me some sample code because I tried some methods, but they did not work particularly with arrays. Help appreciated!
Summary: work our on for loops clearly.These are the basic stepping stones to learn c. a simple answer is decreament by 1 each time a loop goes. for(i=5;i<=1;i--)/*for i times*/ { for(j=1;j<=i;j...
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...
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**...