Thanks again! This is much cleaner.
Type: Posts; User: SanFi
Thanks again! This is much cleaner.
Thanks! I just have one more question. I want to make sure that I understand what I am doing when I am calling the pop function specifically, relevant code posted below:
while ((ch =...
John.c thanks so much! I haven't dealt with struct or pointers yet (I did, however, skip ahead and try to learn about read/write; so, apologies if I misled you on that end). By the way, in response...
Yah, that's a problem. Thanks for this.
Thanks so much Laserlight! I've been applying your code to some of my work, and it works really well.
Thank Salem! Appreciate this edit and rule-of-thumb a lot.
Hello again,
Thanks to all who have helped me with my problems in the past.
Today, I am working on a problem that asks to check whether a series of parentheses or braces is properly...
Hello all,
I've been working on a chess piece relative value problem. The user inputs chess piece positions for both White and Black, and the output is the sum of the relative value of...
I understand better now, and appreciate the practical advice. From here on, I will follow your first recommendation.
Nonetheless, to understand VLA a bit more, could you provide an example using...
Thanks! I just would like to clarify something about variable-length arrays. I thought that the length of an array can be defined by my first function parameter "n," and once the user inputs "n" that...
Hello Again!
On this Super Bowl Sunday, I am working through some problems in my C book. This post is about writing a function that returns the largest element in an array.
...
Hi All,
Thanks so much for your responses! As a self-learner (without any use of videos), your advice has been a godsend. Most importantly, it has motivated me to continue despite some of my...
Hi All,
Another beginner question. I am to write a "random walk" program of the English alphabet (A thru Z) on a 10x10 matrix. While I think I have a solution, it could be cleaner.
...
Thanks! Also, your code is obviously much cleaner, and I learned a couple of things from it.
Just out of curiosity: would you prefer to use scanf over getchar when dealing with numbers only? For...
Hello,
First time poster and learning about arrays.
The problem asks to build a 5x5 matrix and then to calculate the sum of the rows and columns.
The code (pasted below)...