DavidB 44 Junior Poster

This is an extremely basic question, but I haven't found an answer yet.

I recently purchased a brand-new computer with Windows 10 and at the moment am using the Microsoft Edge browser that came with it.

I would like to open some offline (HTML) pages, but the Control-O feature to which I am accustomed in IE, Chrome, and Firefox, doesn't work. In the Edge browser, the hotkey Control-O resets the zoom level.

Is there a replacement hotkey for Control-O in Microsoft Edge?
Alternately, what is the non-hotkey method for opening an offline page in Edge?

Note, I am not trying to set the default Start page. I would simply like a quick and easy way to navigate to and open an HTML page that is saved on the hard drive.

Aniket_6 commented: Snapchat is different from other social media applications in all respects. One of the questions users are most curious about, how to change is a Snap +0
DavidB 44 Junior Poster

Another aspect: it displays differently, depending upon what browser is used.

In Google Chrome, I see three columns presenting a variety of topics being discussed on Daniweb. It reminds me of the old Yahoo! page from 15 - 20 years ago, and all its copycats, that threw everything out on the front page: latest news, weather, sports, horoscope, hollywood gossip, etc.
And the "Toggle Menu" button at the top left of the screen works, so I can drill down through the various menus.

In Internet Explorer, there is only one column, the left-most. The other two columns are empty space.
And the "Toggle Menu" button does not work. I can click it as often as I want--nothing happens. In fact, I logged in last week through IE, couldn't see much on display, couldn't work through any menus, so I wondered what was going on. (I even IM'ed Dani about it. Now that I am using Chrome, things don't look quite so bad.)

rproffitt commented: Oh wow. Just recently we went over this with Android, my iPhone, Chrome and now this. +0
DavidRogers commented: I get identical results (3 populated columns) for both browsers when anonymous...?!? +0
DavidB 44 Junior Poster

First thing I'd suggest is to upgrade your version of VS. The support for c++ is much better.

Yes, I am considering that. Maybe before I start the next project. I hesitate because I don't think it's an upgrade of my existing program; it's a completely new install. I've already got three versions on my computer. I'd like to avoid a fourth. Too much clutter on my computer already. If it was simply an update of my existing version, I'd jump right on it.

As to your particular problem try this post.

Thanks.
I added the following line to the very top of the program and the problem has gone away:

#define _SCL_SECURE_NO_WARNINGS

Excellent! The program is working properly again with no hiccups.

Thanks for the help.

DavidB 44 Junior Poster

A recent study done by a think tank hired by Canadian airline companies has come to the conclusion that if the airlines charged less money then people would buy more tickets.

Your topic hits a nerve; it is something we have been kvetching about for a long time.
In fact, Scott Gilmore, a columnist with MacLean's magazine, made similar comments earlier this year: Canada is not a country

It is a pretty good article, not specifically about travel, and I think he made some excellent points. His comment about black swan moments, in particular, resonated with me, but he didn't go far enough. I think history is shaped by black swan moments. Period. And they are far more common than people think.

However, he did get strongly criticized for this article. Some people like to pick nits, and they really attacked this article piece by piece.

DavidB 44 Junior Poster

I have translated many numerical math programs from FORTRAN into C++ and JavaScript. The original FORTRAN source code listings are posted on the NETLIB site and have been in the public domain for 20, 30, years.

The C++ and JavaScript translations that I write are hand-coded, line-by-line, and repeatedly tested and stepped through. The conversion tool f2c is not used.

Sometimes I get emails from people asking if they can use my program, or the source code, or parts of it in their own work.
I do not mind people using my code in their own work; I implicitly assume people will use it when I post it on a public website anyhow.

But some people ask about licensing (MIT, BSD, BSD 2/3-Clause, Apache, or some other license.)
I have no idea about licensing.
Coding is just a hobby of mine; I have never looked into licenses, how they work, what they do, which one would be most appropriate to my work, etc.

Any advice?
How do I decide to add a license to my work? And, if so, what factors should be considered to decide which license is appropriate to the type of work I post?

pty commented: An interesting question +0
DavidB 44 Junior Poster

Hello, Raza.

Welcome to the DaniWeb forums. We are glad you joined us.

These forums are an excellent resource: lots of good information and many knowledgeable members here.

It is a great place for the sharing of ideas. I am sure you will learn a lot here.

See you around the forums.

DavidB 44 Junior Poster

I think your request contradicts itself.
Either it is a top social media site, which is no-follow.
Or it is a site so obscure that it gives no value to your website.

The days of SEO by getting all the backlinks you can are gone. Almost all the best-known sites are no-follow, so I recommend rethinking your strategy. If you really want a presence on social media, stop thinking about whether the links are no-follow or not. Join some communities and take part in the discussions there. Write some good-quality articles and post them in your feed in each of the sites. That way, whenever somebody does a search on any of these social media sites, your site will be listed in the results. You have to treat each of them as an independent entity, each with its own search. It may not give you any benefits in terms of Google's results, but at least you'll get traffic in each of the social media sites.

DavidB 44 Junior Poster

They are pretty self-explanatory.
"Delete" deletes something.
"Format" refers to several different ways of formatting: italics, font size, font style, colour, bold, centering, etc. Are you talking about text? A page? Forum-specific capabilities? ...

hadisur_rahman commented: formatting +0
DavidB 44 Junior Poster

I'd recommend sticking with something you know. That way, you don't have to learn a brand-new language from scratch; you can create graphs as quickly and easily as possible. Otherwise, you could probably create graphs with any language, for example, C++, but it would be a major new project.

If you already use Microsoft Excel, why not just import the data to Excel and use some of its graphing capabilities? Or, if you just want a plot of raw data (numbers), you could use a free online tool like Desmos. Otherwise, there are more sophisticated tools available aimed for scientific applications (e.g. Octave, SciLab, etc.)

It all depends what kind of data you are planning to plot, and the type of graph you would like to create.

DavidB 44 Junior Poster

Hello, Steve.

Welcome to the DaniWeb forums. We are glad you joined us.

These forums are an excellent resource: lots of good information and many knowledgeable members here.

It is a great place for the sharing of ideas. I am sure you will learn a lot here.

See you around the forums.

DavidB 44 Junior Poster

You won't get good at Algebra just by reading a particular book; you only get good at it by doing it, and more, and more, and more. By reading several books, doing exercises, and coming at the info from different angles, the pieces will come into place and you will get good at it. But don't expect it to happen overnight.

ddanbe commented: Good advice! +0
DavidB 44 Junior Poster

Each mailbox is either closed or open, so you could represent the mailboxes by an array of ints, which are assigned the value 0 or 1, to represent closed or open. Or an array of booleans. Start by assigning all of them to one value (say, 1) to represent closed. Then go through the loops, and check if closed or open:

if (1) reset value to 0
else reset value to 1

Then just go through all the loops like that. Post your code as you go so we can offer suggestions.

DavidB 44 Junior Poster

Wolfram Rösler created a similar collection on his web site:

The Hello World Collection

It includes credits, and a link to similar collections (including Wikipedia.)

DavidB 44 Junior Poster

Hello, Razaleigh.

Welcome to the DaniWeb forums. We are glad you joined us.

These forums are an excellent resource: lots of good information and many knowledgeable members here.

It is a great place for the sharing of ideas. I am sure you will learn a lot here.

All the best to you in your studies, and see you around the forums.

DavidB 44 Junior Poster

The use of a URL Shortener, by itself, is not spam. It is used for many legitimate purposes (e.g. - in Twitter, to keep tweets within the 140 character limit).

And they are offered by many different sources; in fact, even Google provides one (goo.gl). I don't think Google would offer a product that is considered solely a spam tool.

HOWEVER, if you submit a URL--shortened or not--to a multitude of sites, or post it all over the blogosphere, or post it in many forums and it is not relevant to the conversation taking place, then it will be considered spam.

As always, use good judgement and make sure the link you are submitting fits into the page to which you are submitting it.

DavidB 44 Junior Poster

Have you successfully submitted the feed to other outlets? If so, then I think the feed is fine. In this case, you should contact Alltop and ask if they are having problems on their end.

If the feed did not work with other sites, then there may be a problem with it.

By default, the feed for a Blogger blog should look like the following:

http://BLOGNAME.blogspot.com/feeds/posts/default?alt=rss

(Replace "BLOGNAME" with the name of your blog.)

However, some sites don't require the full URL; some only require http://BLOGNAME.blogspot.com/feeds/posts/default

Is your feed going through FeedBurner?
In this case, the output of FeedBurner should look like the following:

http://feeds.feedburner.com/FEED_NAME/RAN_LET

where "FEED_NAME" is the name you've assigned to this feed, and "RAN_LET" are random letters FeedBurner has assigned to this feed (but it's part of the feed, so you'll need them when submitting the feed to blog directories.)

DavidB 44 Junior Poster

Hi, "chubbyy.putto."

(Perhaps you could include at least your first name in your Profile, so we can address you with a proper name instead of your forum handle.)

Did you ever get your program working like you wanted?
Was your assignment to write the program, or did you just need the random numbers regardless of how you got them?

You might want to check out the Mersenne Twister algorithm; as far as I know, it is presently the best pseudo-random number generator available. It has an extremely long period (i.e. - generates MANY numbers before it starts to repeat.)

A web search turns up a lot of information about this algorithm, including source code in several languages; in fact, a search of the Daniweb forums turns up several discussions too. For example: http://www.daniweb.com/software-development/cpp/threads/311641/random-number-generator

There is also a web service that provides true random numbers: http://www.random.org/

From their home page: "The randomness comes from atmospheric noise . . ."
Apparently, they have a few radio receivers, which they use to sample atmospheric noise and generate random numbers. Depending upon your needs, you can specify the types of random numbers you need, and this free web service will generate them for you.

Hope this helps.

rubberman commented: Like their use of atmospheric "noise" to seed the generator! :-) +12
DavidB 44 Junior Poster

Okay, I have played around with it a little more.
The fact that the arrays are global seems to be affecting the behaviour. All arrays declared local to the function, or passed in as usual, behave as expected (i.e. - I can watch all entries as usual).

I am going to mark this thread "Solved" and move on.

DavidB 44 Junior Poster

If you want a laugh, and don't mind some potty humour, some of the reviews on Amazon are pretty funny too. Here is a link I received from a member of the Pasadena IBM Users Group (PIBMUG) some time ago:

http://www.amazon.com/dp/B000EVQWKC/?tag=PIBMUG-20

The Questions and Answers, and quotes, are funny, but I think the funniest content for this product page are the Customer Reviews. The first one is the funniest, but several of the rest are pretty good too.

I laughed my head off a couple times.

DavidB 44 Junior Poster

Hello, Rasha Ali.

Welcome to the DaniWeb forums. We are glad you joined us.

These forums are an excellent resource: lots of good information and many knowledgeable members here.

It is a great place for the sharing of ideas. I am sure you will learn a lot here.

See you around the forums.

DavidB 44 Junior Poster

A few things come to mind:

1) you already know the size of the array, so I don't see the point of using the new operator, which indicates a dynamic array.
2) if the array is supposed to hold floating point numbers, why do you declare it type int?
3) what is the point of the variable scores (presently, it is just assigned the array index value squared)?
4) the variables average, sum, and length are not defined before they are used, and they are used before values are assigned to them.

DavidB 44 Junior Poster

Do you mean Google's EMD (Exact Match Domain) Update?

Have you already searched these forums for existing discussions on the topic?

In addition, Search Engine Land is always a good place to start looking for info about search engines: http://searchengineland.com/library/google/emd-update

DavidB 44 Junior Poster

See: . . .

There is also an informative post made by Danny Sullivan on Search Engine Land:

FAQ: All About The New Google “Hummingbird” Algorithm
http://searchengineland.com/google-hummingbird-172816

" . . . has anyone seen a flux in that over the past month?"

For my sites, traffic always goes up in September. Summers are very quiet but when school starts up again in September the traffic increases. So it is hard for me to gauge if that traffic change is caused by the algorithm change or the simple fact that students start needed my math tools again.

My own activities don't change in any case. I can't live my life around what Google or doing, or speculation about what changes Google may make in their algorithm. I still have to focus on writing some blog posts, writing programs, participating in a few forums, etc. My activities don't change.

DavidB 44 Junior Poster

It has been a while since I tweaked my Profile, and I just spent a few minutes reviewing it.

There are fields in our Daniweb Profiles for our Facebook and LinkedIn URLs (among others).
I hesitate to share this information because I'd probably end up with many "friends" from India, which I don't really mind, but it would undermine the credibility of these networks.

However, what I would find more useful is a field in our Profiles for our Blog URL. Comments are turned off, so I don't have to worry about spam comments, and I would appreciate another way in which to make people aware of my blog.

The next time Daniweb admins make changes to the forums, any chance a field could be added to our Profiles for our blog URL?

DavidB 44 Junior Poster

I personally think they should be left alone. . . .

Agreed. The West should get out of the habit of meddling. And the fact is, we simply cannot afford to do it anymore.

We should let somebody else take a turn shouldering the burden of settling conflicts. China sells their goods all over the world and is getting rich doing so. Why can't they pay the cost of policing a region for a change? Or Russia? They have a stake in the region too, but aren't talking about going in there to settle things. Perhaps they believe things will get settled--by themselves--without costing any Russian men or rubles. Either way, people are going to get killed.

And why are we now so concerned that people were killed by gas? Nobody would be as excited if the same number of people were killed by a big explosive device.

I wonder why some nations seem content to let others kill each other, while western nations feel the need to do something about it. Are those nations simply more cold-hearted than we are? Or do they know something we don't?

DavidB 44 Junior Poster

What are you doing now (i.e. - grade in high school, college, etc)?

If you are sure you want to pursue a career in Computer Science, I suggest you start exploring Linux. It is not exactly Computer Science, but most jobs in the field like to see somebody with some knowledge of Linux. All the programming courses I took (Mac Pascal, FORTRAN, Pascal, C, C++, etc.) always covered the same bases: do loops, for loops, while loops, pointers, arrays, subroutines, etc. The syntax was slightly different, but the logic was similar. I thought most of the courses after the first one were just a waste of time, since they were just repeating what I already learnt in the first course.

If you get a job using existing applications, or purely writing code, consider yourself lucky.

However, in many situations, you will end up working in some industrial application: remote control, telephony, web applications, communications, game development, real-time robotics, etc.-- all of which will require knowledge of Linux or Unix (Windows is not good for real-time applications).

Here's an idea: pretend you are a graduate right now, and you are looking for work. Spend some time in the job boards (monster, careerbuilder, etc.) and see what requirements are listed for job-postings that you like. I think you'll see a lot of them include Linux experience as a requirement or a "nice to have."

And the nice thing about playing with Linux is that you can do it on your own, constantly--even …

DavidB 44 Junior Poster
"Patriotism isn't the same as nationalism. The former is a healthy love and respect for your country, but the latter is blind, total, and unrestricted support for any and all legislation, policies, or activities of a nation. Nationalism is the extreme, whereas patriotism is the goal, because good patriots know when to challenge their political leaders, laws, and policies when they become unjust or immoral."

Rev. John Triglio Jr. and Rev. Kenneth Brighenti
"Catholicism for Dummies"
2003

DavidB 44 Junior Poster

They are both used to access members of a structure.

The dot operator is used to access members of that structure when the structure is in the code block by value. For example, say you define the following structure in the main program:

struct {int a;
int b;
int c;
int d;
} DummyVariable;

You could access any of the members of DummyVariables by using the dot operator. For example,

DummyVariable.a = 5;

You could also pass the entire structure into a function. For example,

function(struct variablename);

HOWEVER, changes you make to members of the struct within the function won't apply outside that function. If you want changes to a struct to be applicable outside the function, you have to pass that struct into the function by reference. So the function would have to be re-defined to accept a pointer (*p), and in the main program the address would be passed in (e.g. - &struct).

Then, in the function, you would access members of the struct by using the -> notation, and any changes made to the struct within the function would take affect outside the function also.

DavidB 44 Junior Poster

I would like to use Linux at home but do not want it to mess up anything on my home PC (Windows 7).

Ideally, I would like to run it from a USB drive, as independent from the PC as possible.

This is totally new territory for me, so I have several questions.
First, is this possible?
If so, what distro of Linux is recommended?
How do you tell the computer to boot from the USB when starting up?

I don't expect to run many applications.
Mostly a word processor (e.g. - Libre Office), a web browser, FTP client for updating my websites, plain text editor, and perhaps a C++ compiler/IDE.
Could these Linux applications also be run from the USB drive?

Any suggestions for what size USB is required for doing all this?

I need a step-by-step "Installing and Running Linux for Dummies" tutorial. Any suggestions?

DavidB 44 Junior Poster

I am sure all the prestigious universities are comparably excellent (Oxford, Cambridge, etc.).
Do you have a particular preference for where you want to go within the field of Computer Science (CS)?
For example, Loughborough is pretty well-known for aerospace, so a CS degree there might be designed more for engineering applications.

Perhaps ask your question in a forum specifically for university students. The Student Room (thestudentroom.co.uk) is the biggest student forum I know of, and it happens to be based in the UK. Somebody there probably has personal experience with UK universities and can offer better information.

DavidB 44 Junior Poster

Here is a small--complete--program that includes a sub-routine that inputs two matrices and then multiplies them.

Notes:

  • 1) I happen to like taking input from a text file. It eliminates the need to type input from the console, especially when debugging, it prevents the possibility of making typos.

  • 2) The sub-routine includes several checks to make sure the array sizes are correct. These checks are not necessary for this particular program, but the checks were added in case the sub-routine is ever copied and used somewhere other than this program.

  • 3) To make the code more concise, I have used typedef to re-name vector<vector<double> > as "C2DArray".

  • 4) This program also shows an example of two more aspects of C++ programming: (i) dynamic arrays using <vector>, and (ii) inputting data from a text file and putting it into arrays

===========================

DavidB 44 Junior Poster

I don't use any online storage but I would imagine SpiderOak is preferable to DropBox. SpiderOak uses on-the-fly encryption . . .

Nice. I will have to check that out; I hadn't heard of SpiderOak before.
I presently use Google Drive, ADrive, Box, and My Shoebox (shoeboxapp.com) for photos, but it is always good to know about more options.

Regarding privacy, I don't worry too much about it. I don't save documents with deep dark secrets anyhow. I mainly just treat it as a back-up in addition to a USB, in case my computer crashes or my home burns down.

Anything more personal or private I would encrypt anyhow (addresses, phone numbers, business contacts, website log-ins, etc).

DavidB 44 Junior Poster

Are you the author of the program?
If so, why not just initialize everything at the beginning of the program so you don't have to wonder?

Are the data types all going to be numeric, as in your example?

I don't think there is an easy way to do it. Off the top of my head, one way would be to assign a Boolean variable to each variable to indicate if it has been initialized or not.

If the variables are all numeric, you might try using isnan() in <cmath>.

Also, this might interest you, and it is relevant:
Yesterday when I was looking for information about quiet_NaN, I came across several informative threads on stackoverflow. You might want to head over there and do a search for "quiet_NaN". Here are some of the more interesting/relevant threads:

http://stackoverflow.com/questions/7893531/what-is-the-best-way-to-indicate-that-a-double-value-has-not-been-initialized/7893598#7893598

http://stackoverflow.com/questions/235386/using-nan-in-c

http://stackoverflow.com/questions/6822044/c-checking-if-a-variable-is-initialized/6822126#6822126

http://stackoverflow.com/questions/235386/using-nan-in-c#236952

The post by "Motti" in the last thread has been upvoted a lot, so it might be worth investigating more thoroughly.

DavidB 44 Junior Poster

Here is my first Code Snippet contribution: a C++ sub-routine that computes the roots of a quadratic equation.

Notes:

  • This sub-routine checks if a = 0.
  • IF a = 0, then the equation is actually not a quadratic equation; it is a linear equation with one--if any--root.
  • IF the user misses the output statement alerting the user to this fact, the second root has been explicitly assigend a NaN value so that the result is not mistaken for a number.
DavidB 44 Junior Poster

You are not even in the job yet, so don't take anything for granted. Many people are looking for a job and cannot find it, so IF you actually get hired, appreciate it.

Once you are there, take the opportunities to learn new things. Many people make the mistake of entering a job and focusing on their particular field of specialization--only. I think that is a mistake. Most employers will give employees exposure to other software packages (e.g. - CMS Software, ERP Software, Accounting Software, etc.) and different technologies. Make sure you learn about them when you get the opportunity. Having more to put on your resume makes the next job come sooner and easier. Gradually work your way in to the job you want.

Another bit of advice: usually it is not the job itself that makes it or breaks it for you; it is the people you work with. So don't be surprised if you find your dream job but can't stand the people you work with. Bad co-workers can turn a dream job into a hell for you. Some of the best jobs are actually not doing the specific job you want, but working with people you enjoy spending 8+ hours a day with.

diafol commented: great post +0
DavidB 44 Junior Poster

It should be as easy as logging in to your account and deleting it.
For example, if I log in to my Delicious account, I can select the bookmark, and then choose to delete it.
All the other social bookmarking sites offer similar features.
I don't understand why you would think you can not delete a bookmark; after all, they are your bookmarks, which you have saved for your convenience.

gulzaifaqeeri commented: The Importance of Building a Strong Foundation for Your Career +0
DavidB 44 Junior Poster

Can you go to another computer (friend's computer, public library, Internet cafe, etc.)? Perhaps you can go to another computer and download the attachment to a USB drive. If you can download from another computer, then you know the problem is not with Gmail, it is with your computer.

If the problem persists on another computer, then you know the problem is with Gmail, or your account, or perhaps just that particular attachment. In that case, you may have to find a way to deal with the problem email.

Try a few things to narrow down the problem.

DavidB 44 Junior Poster

Hello, David.

Welcome to the DaniWeb forums. We are glad you joined us.

These forums are an excellent resource: lots of good information and many knowledgeable members here.

It is a great place for the sharing of ideas. I am sure you will learn a lot here.

See you around the forums.

chilly_peppers commented: i was on these forums, until the admins found out i was 12. they banned me. i was expecting the ban to disappear now but it didnt. so i made a new account. but thank you for welcoming me. +0
DavidB 44 Junior Poster

Hello, Milos.

Welcome to the DaniWeb forums. We are glad you joined us.

These forums are an excellent resource: lots of good information and many knowledgeable members here.

It is a great place for the sharing of ideas. I am sure you will learn a lot here.

See you around the forums.

DavidB 44 Junior Poster

I am puzzled that so many people actually like that smell enough to buy it. There are so many other scents to put in a can and spray on your body. Why is this one so popular right now? It really has an edge to it and makes your eyes water.

DavidB 44 Junior Poster

My pet peeve is Axe body spray. It is everywhere I go: in public transit, the malls, etc.

I think it smells terrible, and some young guys seem to bathe in it. I can't believe people are paying good money to make themselves smell like that. I prefer the smell of insect repellant. Seriously.

DavidB 44 Junior Poster

Depending how much information you want to transfer out of the switch statement, you might have to use several temporary variables.

For example, say the integer variable TestVar equals 6 and caused Case 3 to be true.
If you went straight to a break from there, you would know that TestVar equals 6. Not much information tranmitted out of the switch statement there.

However, if you set a few flag variables before doing the break, you could transmit more info. For example:

Case 3: flag1 = 1;
    flag2 = 2;
    flag3 = 0;
    break;

By doing this, you could break out of the switch and also provide some ways to direct how the rest of the program should execute.

For example,

if (flag1){
  proceed to take course 1
}

if (flag2 != 2){
  execute other statements
}

That is one way of doing it.
Hopefully, you get the idea.

DavidB 44 Junior Poster

(This post should not be in the Internet Marketing forum, but I am willing to offer some advice.)

Is it your own website? Do you think it has been hacked? Google's diagnostics tool might turn up some problems, but it might miss others. If it really has been hacked, you might need more thorough measures to detect it and fix the problem.

In the following URL, replace example.com with the domain of the site you want to test:
www.google.com/safebrowsing/diagnostic?site=example.com

This test is pretty good. There are other, free, online test sites you could try too, if you want more than one opinion.

DavidB 44 Junior Poster

I think "m4ster_r0shi" gave the best answer in his first post.

There is no guarantee that the results will be nice, round, numbers. Even if the square root function were to return a whole number, the next step is to subtract it from (-b) and then divide that result by (2a). Again, there is a good chance the result will be a decimal.

Other than compute the discriminant (b * b - 4 * a * c), this program does really little to forward you to the solutions of a quadratic equation.

DavidB 44 Junior Poster

(Assuming you are dealing just with polynomial functions)

A couple suggestions.

C++ array indexing starts at 0.
From line 49, you have input the coefficients of the polynomial starting at polynomial[1], and then a few lines down you assign the constant term to a separate variable, constant.
Why not just assign it to polynomial[0].
Then you'd have all the coefficients in a single array and everything later could be dealt with more smoothly:

a0 * x^0 + a1 * x^1 + a2 * x^2 + a3 * x^3 + . . .

Then,
polynomial[0] = a0, which is the constant,
polynomial[1] = a1,
polynomial[2] = a2,
polynomial[3] = a3,
. . .

And you know that the array index corresponds to the power of x for a particular term (e.g. - polynomial[2] corresponds to the term for which the power of x is 2, etc.).
Having this connection makes things a lot easier.

In Newtonf, you define b twice, as a double, and in the loop as an array index. You should only need it once. You define c but don't use it.

In Newtonfd, you define c, and use it, but don't initialize it.

And you don't pass 'x' into either function. You need to pass in the x-point at which you want each function to be evaluated.

You know the derivatives of a polynomial are simply n * an * x^(n-1), where n is the power of the term.

DavidB 44 Junior Poster

This question would have been more appropriate in the "Software Development"->"Computer Science" section of these forums.

What, exactly, don't you get? The algorithm itself? The C++ coding part of the problem? . . .

Why don't you post what you have done so far, and we'll try to help you from there.

DavidB 44 Junior Poster

You mean Visual Studio 11 Beta?

The MSDN site (http://msdn.microsoft.com/en-US/vstudio) mentions some Visual Studio 11 Beta Forums. Here is the direct link:

http://social.msdn.microsoft.com/Forums/en-US/category/vsvnext

Hope this helps.

Ancient Dragon commented: Thanks +14
DavidB 44 Junior Poster

Hello, "Nimrod7676".

Welcome to the DaniWeb forums. We are glad you joined us.

These forums are an excellent resource: lots of good information and many knowledgeable members here.

It is a great place for the sharing of ideas. I am sure you will learn a lot here.

See you around the forums.

DavidB 44 Junior Poster

To be thorough, you should also test for exceptions--in case memory can not be allocated.

I have posted three versions of a program that dynamically allocates memory for a 2D matrix on my website (see my sig, near the bottom of the page: "Dynamic Arrays in C++").

Maybe these code samples will help you too.

DavidB 44 Junior Poster

Why not just send an email to the blogger and ask him what he uses on his blog. If you ask politely, most webmasters and bloggers willingly share their information.

While you are waiting for a reply (assuming it comes) browse around the Wordpress site and investigate all their plug-ins and add-ons. Perhaps you will find what you are looking for on your own. You might also want to visit some forums specifically about blogging; they have many resources relevant to blogging.