Posts
 
Reputation
Joined
Last Seen
Ranked #726
Strength to Increase Rep
+4
Strength to Decrease Rep
-1
88% Quality Score
Upvotes Received
6
Posts with Upvotes
5
Upvoting Members
6
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
2 Commented Posts
0 Endorsements
Ranked #2K
Member Avatar for Member 785072

I am teaching myself C++ with the very same book and did that very exercise yesterday. One of the 3 'run-time' errors, as opposed to the 5 'compile-time' errors, is that not all of the possible cases are accounted for. The calculator won't recognize a certain digit as a valid …

Member Avatar for Matic_1
0
974
Member Avatar for Nathaniel10

Last week the New York Times semed to skewer Amazon over the stress it places on its workers. I read today that Dustin Mosokvitz confirms such high stress work environments and confesses that his health deteriorated while at Facebook as a result. I don't work in IT but I hope …

Member Avatar for jkon
0
247
Member Avatar for Nathaniel10

In my continuing quest to improve my understanding of OPP in PHP, I have developed another project. It is closer to my field and a real life project I hope to develop, than my previous post using geometric shapes. This draft program is the simplest version. I want to increase …

Member Avatar for Nathaniel10
0
194
Member Avatar for Nathaniel10

I want to increase my knowledge of PHP by learning about classes. I wrote the following very simple test program. It works. But I would like to know improve it. I plan on writing more complex test programs and that won't be the time to iron out smaller issues. Thanks …

Member Avatar for diafol
0
441
Member Avatar for Nathaniel10

Hello All, My old computer crashed. I installed XAMMP on my new computer. My old PHP files don't run. I learned that the reason is that register_globals feature has been deprecated and is now permanently Off by default. My old files were written in a 'register_globals=On' environment. I understand that …

Member Avatar for Nathaniel10
0
355
Member Avatar for lapunluyang

What Guy said is correct on the surface. Underneath is a different story. I have an ad campaign for the homepage of the small site I manage and ads for 5 other landing pages. The landing pages are more specific than the homepage, as Guy advises. The problem is that …

Member Avatar for AffineMesh
0
481
Member Avatar for Nathaniel10

I have a form with several inputs. One has a sub-input based on the condition of the original input. An example is: <input onChange="javascript:addRow()"/> The JS function works. function addRow() { Dynamic HTML code ... } However, if the original input is modified a second time, the JS function executes …

Member Avatar for Troy III
0
200
Member Avatar for Nathaniel10

I have a problem that includes finding the maximums and minimums of certain variables in sequence. I want to nest the max() and min() functions as follows. $variable5 = min(max(($variable1 - $variable0), 0), $variable3); The PHP manual says/suggests that this type of nesting is possible. However, the code doesn't run …

Member Avatar for Nathaniel10
0
365
Member Avatar for Nathaniel10

I have a script in which I would like new code to appear based on the response to a question. I am using 'onChange' to trigger the event. The difficulties I am having are that: 1) The format of the form changes after the event. I would like the new …

Member Avatar for Nathaniel10
0
126
Member Avatar for mitz

I have AdSense on a small website I manage. I don't understand the large variance in the revenue per click that I am experiencing. I can earn $10 on a total of 10 clicks one day, and yet earn only $5 on a total of 25 clicks another day. I …

Member Avatar for margaret224
1
1K
Member Avatar for Nathaniel10

I have searched for and read through over 50 examples of linked lists. I can barely make heads or tails out of them. Some are in C, some are in Java, some use templates, most only discuss theory and display flowcharts but have few explained examples. I need serious help! …

Member Avatar for Nathaniel10
0
296
Member Avatar for pjh-10

I'm late on this but here is my $0.02 anyway. Moschops is right that this is the same as the Birthday Problem. However, this is NOT a C++ problem, or even a computer programming problem. It is a probability problem. The probability solution involves dividing the 1000 songs into 2 …

Member Avatar for pjh-10
0
435
Member Avatar for Nathaniel10

I am teaching myself C++ and wrote a program that does the queue data structure. It runs corectly. I would like some feedback on how I can improve the program to make it run faster, use fewer lines of code, or be clearer to someone else. I haven't added my …

Member Avatar for Nathaniel10
0
84
Member Avatar for Nathaniel10

I am teaching myself C++ and amd now trying to simple programs related to data structures. I wrote this code for a simple stack. It is not working. I am frustrated and tired so I cannot think through the issue. There are two main problems with which I need help. …

Member Avatar for Nathaniel10
0
118
Member Avatar for Nathaniel10

I would like to express a superscript and a subscript in the same vertical space. For example, consider a variable called X with a subscript 1 that is squared. I have searched for examples of what I want to do but cannot find anything close. [code] X<sub>1</sub><sup>2</sup> [/code] The above …

Member Avatar for Nathaniel10
0
98
Member Avatar for Nathaniel10

I am organizing my site to make it easier and faster to maintain. I keep a small version of my site on my laptop running Apache/PHP. I successfully organized and recoded things to the way I wanted. Upon uploading the file to my live site, I ran into several problems. …

Member Avatar for Nathaniel10
0
165
Member Avatar for Nathaniel10

Hi. This is not a frequently browsed category, but there is no place else for my question. I am organizing my site to make it easier and faster to maintain. I keep a small version of my site on my laptop running Apache/PHP. I successfully organized and recoded things to …

Member Avatar for Nathaniel10
0
224
Member Avatar for Vasthor

Narue, Thank you very much for your outstanding explanation of pointers. Like the OP, I am also self-learning C++. Your post has raised my understanding of pointers several levels, as the books and tutorials I read were nowhere near as clear. I have a follow-up question. (Not to hi-jack the …

Member Avatar for Narue
0
2K
Member Avatar for Living-seo-life

I manage a small website. I participate in forums that are relevant to our business. [B]ALL[/B] these forums prohibit advertising in the posts. That includes links to a site that you reference in your post. They force you to buy advertising on their site. I have also written 2 or …

Member Avatar for sushilsilicon
0
1K
Member Avatar for momin90909

I was going to suggest exactly what MrIdul posted above. It may take some effort to write the loops for sine and cosine to the degree of precision you need, unless you have experience with the infinite series topic in advanced calculus.

Member Avatar for WaltP
0
271
Member Avatar for ShaRp codeR

[QUOTE=ShaRp codeR;1674041]Thanks guys, i figured it out how to show "1000" under principal. Thanks for the help.[/QUOTE] That was not your only error. The principal balance at the beginning of a month should be equal to the remaining balance at the end of the prior month. Your output does not …

Member Avatar for Nathaniel10
0
166
Member Avatar for asif49

I recently faced a similar issue when I was learning about page layout using CSS. As I understand it, and I may not be understanding it fully or correctly, when you are using relative positioning, you can use negative margins. That is because the margin anchor (top left) will be …

Member Avatar for carrieathomer
0
60
Member Avatar for Nathaniel10

I am developing my own project for the practice. I am having a great deal of difficulty conceptualizing the classes I want. The scenario is that of 2 countries, each capable of producing 2 goods, using 2 factors of production. Specifically, Lower Mongolia and Upper Mongolia have certain amounts of …

Member Avatar for Nathaniel10
0
120
Member Avatar for Nathaniel10

I have made revisions to my program. I gave up on the idea of using functions that return arrays. That was far too complicated for the expected benefit. This latest version compiles and runs correctly with all of the provisions required by the exercise. What remains is feedback on the …

Member Avatar for Nathaniel10
0
146
Member Avatar for Nathaniel10

This is part of my Wumpus Hunt program. Suggestions were to clean up the main() part of the program by creating functions. I am working on that and ran into this difficulty (for me). The functions that relate to the rooms of the game need to return an array. I …

Member Avatar for arshad115
0
227
Member Avatar for Nathaniel10

I was already thinking along ARKoenig's suggestion and revised my code to use arrays. It was working pretty well until I made some minor changes. Now it loops non-stop without any prompt for the player to make a play. I am sure it is a small error, but I can't …

Member Avatar for Nathaniel10
0
162
Member Avatar for Nathaniel10

Is it possible to have an array as a class member? It is part of my Wumpus Hunt exercise. I want to do the following: [code] class Room { blah blah; }; int main() { for (i = 0; i < 3; i++) { Room adjacent[i]; blah blah; } [/code] …

Member Avatar for Nathaniel10
0
108
Member Avatar for Nathaniel10

Stroustrup has an exercise in which the reader writes a program for the wumpus hunt game. A first draft of my code is below. It compiles and runs partly correctly. If you choose to move to a different room the program runs as expected. If you choose to shoot at …

Member Avatar for SgtMe
0
176
Member Avatar for Nathaniel10

I have a difficulty I need help to overcome. I am developing a program that uses more than 1 class. Variables defined in one class are used in other classes. For example: [code] class X1 { private: int a; int b; public; X1() { a = 10; b = 20; …

Member Avatar for Nathaniel10
0
151
Member Avatar for Nathaniel10

An exercise that Stroustrup wants the reader to do is understand the output of the following program. [code] #include "../../std_lib_facilities.h" struct X { int val; void out(const string& s, int nv) { cerr << this << "->" << s << ":" << val << "(" << nv << ")\n"; } …

Member Avatar for Nathaniel10
0
85