10/18/2023 0 Comments Codereview stack exchange![]() Here is the custom sine, pow and factorial functions I wrote (assume they are all part of the same. ![]() I am also using standard C (ISO C99) such that array is not a reserved keyword like it is in Visual Studio. One collection to hold all of Excel's cell values, and the other is the error log one. Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. Due to software constraints, I cannot use the standard libraries, cmath, algorithm, templates, inline, or boost. So I actually created 2 collections of my class that is called Cell. We use the object type here so we can store any. void Push (object obj) object Pop () void Clear () The Push () method stores the given object on top of the stack. Design a class called Stack with three methods. Since I knew the numbers of columns, I thought about making a class that represents an cell on the Excel file and include a string property to hold an possibly error description, by making that it'd make it easy to display the error log. A Stack is a data structure for storing a list of elements in a LIFO (last in, first out) fashion. Then next tweak could be to do the System. If you are familiar with enum you could parse your +, -, / into an enum and do switch on that. The name of the class should be somewhat describing the purpose so in your case Calculator would fit better. In case there are any error in the excel file I have to display them to the user and indicate where the problem occurred. Couple tweaks if you want to make it look nicer. ![]() I was designated to implement a software that is going to validate an 96 column Excel file and if there is no error on it, create an XML file from it. Otherwise, if the sum is less than the target, increment the left pointer. If they produce the desired sum, return the pointer indices. ![]() I'm looking for ways to improve this code (more readable, less redundant and maybe cleaner/faster). Create two pointers representing an index at 0 and an index at len (nums) - 1. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |