Sign up to connect with DGPickett and gain access to their complete profile
  • Member Avatar
    DGPickett

    Replied To a Post in can u help this

    Once you have the average, you need another loop that reviews the input against it and prints the desired items.
  • Member Avatar
    DGPickett

    Replied To a Post in syntax error in update statement

    No comma before where in SQL.
  • Member Avatar
    DGPickett

    Replied To a Post in Char[][] for value list

    Or better yet, make it an array of char*, since a double quoted literal value is a char pointer to a constant on the heap.
  • Member Avatar
    DGPickett

    Replied To a Post in please help me.. in this one 199202

    Not seeing a lot of morphine, just a loop, a few ints, some io!
  • Member Avatar
    DGPickett

    Replied To a Post in Please help. There is a Syntax error in line 17 and I donĀ“t know why. :c

    identical switch within switch is just wrong, and printing inside swtch ouside any case is not at all nice.
  • Member Avatar
    DGPickett

    Replied To a Post in Copy paste link should get redirected to home page.

    Generally, when you go to a web site without a valid timed login cookie, the server redirects you to the login page, possibly with a cookie or variable saying where …
  • Member Avatar
    DGPickett

    Replied To a Post in converting C++ program to C program

    You need to track both the number of cells used (top for a stack) and the capacity (max cells allocated) so you know when to expand the container (stack). Evict …
  • Member Avatar
    DGPickett

    Replied To a Post in converting C++ program to C program

    Since auto resizing arrays are not there in c, not classes, you might want to use a linked list or realloc() a char[] to size.
  • Member Avatar
    DGPickett

    Replied To a Post in how to change source coding to OOP C ++ Using I / O fstream

    If you open an output ofstream and use it not cout, the data is saved in a file.
  • Member Avatar
    DGPickett

    Replied To a Post in Testing RAM Sticks

    If stick 3 runs the machine OK alone, then incompatibility is a strong possibility. However, there is usually one way things can work and an infinite number of ways they …
  • Member Avatar
    DGPickett

    Replied To a Post in JavaScript Object Comparison

    Somehow, the last time i added an equals() to a JAVA List (not Set, as Set does not support lookup like List and Map), it got ignored. I wrote my …
  • Member Avatar
    DGPickett

    Replied To a Post in Read and write files in C++. Not allowing user input

    EOF check between read and write, use get() to pick up white space characters, getline() removes the lew line. dgp@dgp-p6803w:~ $ myCC c++rw dgp@dgp-p6803w:~ $ c++rw Type in file name …
  • Member Avatar
    DGPickett

    Replied To a Post in JavaScript Object Comparison

    Lots of references on the dangers and costs of various equalities. This one seems very nice: https://www.mattzeunert.com/2016/01/28/javascript-deep-equal.html
  • Member Avatar
    DGPickett

    Replied To a Post in Read and write files in C++. Not allowing user input

    Just like scanf() and the JAVA Scanner Class, when you >> the next string, int, double, char, etc., then it reads, initially skipping over white space, into the variable from …
  • Member Avatar
    DGPickett

    Gave Reputation to JamesCherrill in JavaScript Object Comparison

    > == is a shallow comparison Some spectacular Java nonsense here. The == operator cannot be overloaded and checks for referential identity. If two variables contain the same reference then …
  • Member Avatar
    DGPickett

    Replied To a Post in my browser title is not working

    I have had good luck with: "<HTML><HEAD><TITLE>My Title</TITLE>...</HEAD><BODY>...</BODY></HTML>"
  • Member Avatar
    DGPickett

    Replied To a Post in How do I integrate a db into this html table?

    Wow, I just write a service that runs the query and reformats the column titles and values into an HTML table. If I wanted it to be more spreadsheet-like, there …
  • Member Avatar
    DGPickett

    Replied To a Post in HOW to use math in MS ACCESS? (Project PHOTO)

    In a database, you can just keep the count of every part, and as the users take or return stock, the count changes. If you want to know about the …
  • Member Avatar
    DGPickett

    Replied To a Post in Write data to excel in multiple sheets using c#

    The easiest thing is to write CSV files, which follow 4 simple rules: 1) cells are separated by a comma, 2) rows are separated by a cr-lf, 3) unless the …
  • Member Avatar
    DGPickett

    Replied To a Post in print out number in ascending order in c++ WITHOUT USING ARRAY AND FUNCTION

    Wow, can of 'sorts'. You need some sort of container, and there are others besides array: linked list, tree, hash table, skip list. Tree sorts as it adds, and even …
  • Member Avatar
    DGPickett

    Replied To a Post in JavaScript Object Comparison

    == is a shallow comparison, like shallow copy, true only if the refrences are identical, not the objects. http://adripofjavascript.com/blog/drips/object-equality-in-javascript.html JAVA and C++ also have this sort of limitation unless you …
  • Member Avatar
    DGPickett

    Replied To a Post in Can you get a software job right out of college without an internship?

    There is consulting, where they run interference for you, freelance work, volunteer work, teaching, tutoring and open source collaboration to get your status up and your skills sharp.
  • Member Avatar
    DGPickett

    Replied To a Post in Database Forms and logins

    Google sheets keeps track of all changes and who entered them, and allows multiple user concurrent access. An RDBMS app needs to know who is logged in to make changes, …
  • Member Avatar
    DGPickett

    Replied To a Post in Can someone help me with this?

    Hash tables are containers. Hashing creates an integer from other types, usually the characters of a key, where it represents the values and positions of those characters. One divides the …
  • Member Avatar
    DGPickett

    Replied To a Post in How to return parameters from different table rows

    The join table to itself tactic is very good for converting rows to columns. There are other tricks you can use with aggregates and case statements.
  • Member Avatar
    DGPickett

    Replied To a Post in Resizing images without loss of quality

    The major methods for image reduction in size are compression, like in jpeg, and resampling. Resampling may take something like a weighted average, which can make things muddy, or select …
  • Member Avatar
    DGPickett

    Replied To a Post in Router have many ip's referenced to it. How to differenciate per usage?

    DHCP operates a pool of IPs for clients that need them. Usage is a bit worthless unless they stay assigned a long time. As noted, the mac from the ethernet …
  • Member Avatar
    DGPickett

    Replied To a Post in Information about GUI in C++. Do people use C++ for GUI applications????

    The Securities/Stock trading crowd like c++ for the speed, and XWindows was there long before most others.
  • Member Avatar
    DGPickett

    Replied To a Post in C++ Assignment, Hollow Diamond & Average of Positive Integers

    How do you teach those who fall off the official wagon?

The End.