DavidB 44 Junior Poster

You define the TWO 2D arrays, but then you handle them like 1D vectors. Is that what you want to do?

double number[10][10];

. . .

number[0]=num;

. . .

If you want to assign num to array element (0,0), you should state it like this:

number[0][0]=num;
DavidB 44 Junior Poster

Hello, Sagar.

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

There are many sites that discuss the algorithm; have you done any searches?

Here's one:

A Survey of Google's PageRank

There is a LOT of information available; you just have to look for it.

DavidB 44 Junior Poster

Hello, "breaker".

Welcome to the DaniWeb forums. I checked out your profile and noticed you are from the Philippines. Maligayang pagdating!
We are glad you joined us.

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

I am sure you will learn a lot here and these forums will probably be helpful to you if you ever have any IT questions.

See you around the forums.


David

DavidB 44 Junior Poster

Hello, Julie.

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

Post the relevant section of code, so we can help you figure it out.

DavidB 44 Junior Poster

Hello, Toni.

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

Most bulk email marketing services offer a free option for small mail-outs (for example, 250 emails or less, once a month); however, I don't think a free option is popular for 1000 or more emails.

Off the top of my head, I can think of MailChimp. They are probably one of the few services that offer a free option for that amount of emails. Perhaps a search would turn up more.

Otherwise, I would recommend going with a paid service like constantcontact, campaigner, icontact, or the many others.

DavidB 44 Junior Poster

Hi, Daniel.

Welcome to the DaniWeb forums. Good to have you here.

You'll learn a lot here; these forums will definitely help you improve your programming skills.

See you around the forums.

DavidB 44 Junior Poster

Thanks for the replies.

My site doesn't get HUGE amounts of traffic in the first place (maybe 1000 visitors per day), but it is interesting to watch results over the past two weeks since starting these new campaigns.

According to Google Analytics, over the past week Facebook sent me 59 visitors, which is nice. Google AdWords sends me less than 5 visitors a week. The big surprise has been Bidvertiser, which sent me 286 visitors last week. Wow! I wonder why? Does Bidvertiser target people who have never seen my ads before and are, therefore, more apt to click on them? Are people so accustomed to AdWords ads that they do not click on them? (I wonder why such a big difference?)

So . . . at this point Facebook does seem to be more effective at sending traffic to my website.

DavidB 44 Junior Poster

I recently changed hosts for one of my web sites. Signed up for a three-year term and all the bells and whistles. When I logged into cPanel, the account came with five e-coupons for advertising: Google AdWords, Facebook, Bing/Yahoo!, Miva, and Bidvertiser.

I am definitely not going to turn down an opportunity to do some marketing.

In any case, I am curious about the Facbook advertising. I created my campaign and specified the user interests, but it felt strange not having to specify keywords. Do ads appear in a user's browser just because they have indicated an interest in the interests you have specified for your ad campaign? Do they appear all the time, or randomly?

Anybody here have experience with Facebook PPC advertising? Was it effective? In terms of traffic sent to your site, how does it compare to AdWords?

This is new territory for me.

DavidB 44 Junior Poster

Hello, Arda.

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

Are your university studies related to software development? If so, these forums are definitely going to be a useful resource for you over the next few years, and even after that, if you end up working in the software development field.

See you around the forums.

DavidB 44 Junior Poster

Hi, "merse".

I don't know myself; however, you might want to check out the MaplePrimes forums. They are a part of the Maple site, and specifically for Maple questions and I have found them to be pretty good whenever I have had a Maple question.

DavidB 44 Junior Poster

Hello, Joshua.

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

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

It is a great place for the sharing of ideas.

See you around the forums.

DavidB 44 Junior Poster

Hello, "Raven".

Welcome to the DaniWeb forums. We are glad you joined us. There forums are an excellent resource: lots of good information and many knowledgeable members here. I am sure you will find these forums very helpful as you learn C#.

See you around the forums.

DavidB 44 Junior Poster

The code looks okay--assuming no errors or exceptions occur. However, better code would deal with the possibility that errors or exceptions might occur and, if they do, deal with them gracefully. There are three examples posted off the following page:

Dynamic Arrays in C++ - Three Examples

You might want to check them out.

DavidB 44 Junior Poster

Hello, "enthuiastic".

Welcome to the DaniWeb forums. Glad you joined us.

You'll find these forums to be an excellent resource as you learn C++.

See you around the forums.

DavidB 44 Junior Poster

Thanks.

I got it working now.

DavidB 44 Junior Poster

Thanks for the replies.

Let's assume I use the timezone_set option.
I am on the West Coast; the server is on the East Coast.

So would I simply insert the timezone code

date_default_timezone_set ("America/Tijuana");

and then my existing code?

print strftime('%A, %B %d, %Y   %I:%M:%S %P');
DavidB 44 Junior Poster

Hi, "Ertzel".

Welcome to the DaniWeb forums. Good to have you here. You will learn a lot here.

I first learned C++ on my own too; however, it is sometimes hard to think up projects for yourself. Working through books, etc. is okay, but taking courses is good in the sense that they push you to do things you wouldn't normally do. And if you want to ever find work in the field, potential employers put a lot of importance in the little piece of paper (your graduation certificate) you get when you finish. Most of the time, it doesn't matter how good you are or how much real-world experience you might have, employers won't look at you without that piece of paper.

DavidB 44 Junior Poster

No bad luck here. Just a regular Friday.

Can't remember ever having anything particularly bad happen to me on a Friday the 13th.

DavidB 44 Junior Poster

I have almost no experience with PHP so I need some help with a small code block.

My website used to be hosted by a company within my own time zone, so I used the following code to output the date and time on my web page:

<?php
print strftime('%A, %B %d, %Y   %I:%M:%S %P');
print "  Pacific Time";
?>

However, I am in the process of changing to a hosting company that is in a different time zone, three hours ahead of me actually.

How do I change the time displayed on my website so that it is three hours behind the time taken from the server?

DavidB 44 Junior Poster

Hi, Olie.

Welcome to the DaniWeb forums. We are glad you joined us. These forums are a wealth of information for anybody in the computer or programming fields.

See you around the forums.

DavidB 44 Junior Poster

One of my computers recently crashed.
Fortunately, the .pst file was saved so not all is lost. However, I am considering not installing Microsoft Outlook on the new computer. It seemed to take over too much of my system.

A couple considerations:

(1)
If I install Outlook Express instead of the full-blown version of Outlook, will I be able to access the saved .pst file? I really don't need everything; the main things I want are phone numbers, addresses, and various other information from the bodies of the emails.

(2)
If I move away from Microsoft entirely, and get a Linux machine (or even if I don't), can anybody here recommend a third-party product that can view the emails in the saved .pst file? I don't have to edit the file, or anything else--just view the existing emails in the file.

Any suggestions?

DavidB 44 Junior Poster

Hi, Abner.

Welcome to the DaniWeb forums. We are glad you joined us. There are a good bunch of people here. I am sure these forums will be an excellent resource for you as you proceed in your studies. See you around the forums.

DavidB 44 Junior Poster

Hello, San.

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

These forums are a wonderful resource for people who want to learn about computers, programming, computer science, and much more. There is a good bunch of members here.

(Isn't Kazakhstan considered to be a part of Asia, not Africa? Hmmnn . . . but then I am not very good at geography.)

See you around the forums.

DavidB 44 Junior Poster

So the code compiles and executes without errors? It works perfectly?
In that case, the next aspect I might consider is that perhaps the section of code you are testing executes so fast, the result rounds to zero. Are you sure the code does not execute nearly instantaneously? Perhaps compute a transcendental function like sin(x) a thousand times to give it a bit of a work out. Then you should know for sure that execution is taking some time. If the result is still 0, then I am not sure what else to suggest.

DavidB 44 Junior Poster

Everybody is going to have their favorite.

Historically, FORTRAN has always been the language favored for hardcore scientific/math programming, and there is such a large code base out there, I doubt you will get away from it completely for a long time.

Alternately, people like the language they happen to know. I know C, C++, and Javascript, so I like writing code in those languages. Speed isn't an issue for me, and I am happy with the 16 or so decimal places of accuracy these langauges give me.

I suppose it depends on the application and intended audience. For example, if your boss tells you to program in, say, Java, that would become your favorite language.

DavidB 44 Junior Poster

. . . but i dont think its reading from the file because its not finding any numbers in the tier

Right after you input the file, echo it to the console, as a check. Then you know for sure.

You also might want to cut your program waaaay down, get a section working, then slowly add sections.

Here is what I do:
Always keep a plaintext editor (like Notepad) running. Copy and paste your entire program to a plaintext document and save it as a back up. Now cut most of your code out of the program. Leave just enough to run and test the file entry section. Once you have got that section working properly, copy and paste additional code from the Notepad file back into your program. Add and test a small section of code at a time. That way you don't have a whole bunch of things to wonder about. You can build and fix one small thing at a time.

jonsca commented: Great advice +14
DavidB 44 Junior Poster

I don't even understand your question.

You created a few blogs on WordPress and Blogger, you then made a few posts posts on these blogs, you then linked TO these posts from elsewhere (or you linked FROM these posts to elsewhere?).

After a few weeks, both Blogger and WordPress deleted your blogs because you were linking elsewhere. I don't know why this would be an issue, unless your sites were spammy, or linking to porn or something else inappropriate. In any case, links FROM your site don't bring in traffic; it is the links TO your sites that bring in the traffic--and you don't really have much control over external links other than to create quality sites.

DavidB 44 Junior Poster

Hi, "\007".

Welcome to the DaniWeb forums. Glad to have you here.

You will certainly learn a lot about programming, and more, here.

See you around the forums.

DavidB 44 Junior Poster

Here is what I do:

Create the text file and save the data in it. Say the file is named "MatrixData.txt".

In your C++ program, open the file and test to ensure it is opened successfully:

ifstream in("MatrixData.txt", ios::in);

if (!in) {
    cout << "Cannot open the input file.\n";
    return 0;
}

Now loop through and input the matrix data. Note that you are inputting from a file, NOT THE CONSOLE, so use in rather than cin:

for (i = 0; i < mDim; i++){ //Input the A Matrix from the file, size mDim x mDim
    for (j = 0; j < mDim; j++){
        in >> A[i][j];
    }//End for j
}//End for i

Once you are finished inputting data from the file, don't forget to close it:

in.close(); //Close the input file

Done.

If you ever want to output data to a text file, the process is similar.

DavidB 44 Junior Poster

You seem to be on the right track. I gave your code a quick look over and a few things caught my eye:

1) You use a variable called "array_size" in the for loops, but I don't see it defined beforehand.

2) Instead of using the magic number 5 throughout the program, why not define an integer constant and assign it the value 5.

3) Why do you call "findLowest(input, 5)" twice, on lines 26 AND 27? I think you could just delete line 26. After all, you are assigning its output to "lowest" anyhow.

4) Same for "getNumAccidents(num_acc, 5)": why call it twice (lines 21 and 22)?

DavidB 44 Junior Poster

Hi, "jerodev".

Welcome to the DaniWeb forums. Glad to have you here.

These forums are a wonderful resource; there is a lot of good information and many knowledgeable members here. I am sure these forums will be a big help to you in your programming endeavors.

See you around the forums.

DavidB 44 Junior Poster

Hi, Joe.

Welcome to the DaniWeb forums. Glad you joined us.
There is a lot of good information and many knowledgeable members here; I am sure any questions you have will be answered quickly.

All the best to you in your programming endeavors.

See you around the forums.

DavidB 44 Junior Poster

I am planning to change the web host of one of my web sites, and the site has a webmail service (similar to Hotmail, etc.). I recall that when I first set it up, I had to edit the MX record in the DNS file.

Before I change the web host of this site, I am wondering, what is the DNS file? Is this a file posted on the server of the web host (in which case I would have to transfer it to the new host)? Or is this a file hosted on a server of the company through which I registered the domain (in which case, I might not have to do anything)?

Is maintaining and editing the DNS file going to be a big deal?

DavidB 44 Junior Poster

Hello, Jeanne.

Welcome to the Daniweb forums. We are glad you joined us. These forums are a wealth of information. If questions you have aren't already posted, you'll get quick answers here by posting yours.

See you around the forums.

DavidB 44 Junior Poster

Two good places to start are Mathworld and Wikipedia.

DavidB 44 Junior Poster

Hello, "jmrpjb".

Welcome to the DaniWeb forums.

Glad you joined.

There is a lot of good information here and many knowledgeable members. I am sure, whatever your "cyber" problems, somebody here will be able to help you.

See you around the forums.

DavidB 44 Junior Poster

Hi, Dave.

Welcome to the DaniWeb forums.

DavidB 44 Junior Poster

Hi, Aarti.

Welcome to the DaniWeb forums. You should find them a very good resource.

DavidB 44 Junior Poster

Hi, Manish.

Welcome to the DaniWeb forums.

These forums are a wonderful resource. As long as you ask intelligent questions, you will get your questions answered.

DavidB 44 Junior Poster

Hi, Monty.

Welcome to the DaniWeb forums.

You will find a lot of good information here.

Electrical Engineering, eh?! Well, you picked an engineering discipline in which the job prospects should be excellent.

Best of luck to you!

DavidB 44 Junior Poster

It is supposed to use a permanent 301 redirect to forward users to the appropriate page (i.e. - pass on the full benefits of PR).

However, I am still not too keen on it until they allow customization of the short URLs. Right now, the shortened URLs are random letters and numbers, which are hard to memorize. A more intuitive URL, like schoolpage or librarypage, would make the service a LOT better. Existing shorteners, like snipurl and bitly do this.

DavidB 44 Junior Poster

I am quite irritated with Yahoo's new policy of requiring new users of their Delicious service to sign up with a Yahoo! ID. I do not want more email addresses to worry about, etc. I just want to bookmark.

So now I am wondering, among all of Google's offerings, do they offer a bookmarking service similar to Delicious? I am not aware of anything, but perhaps I am overlooking something.

Suggestions!?

DavidB 44 Junior Poster

You could probably start here, with DaniWeb. At the top of each language forum is a tab for "Code Snippets". For example, the C++ forum has a tab within which you could create a thread posting your C++ code.

There are also two websites that come to mind quickly:

The Code Project
http://www.codeproject.com/

Code Cogs
http://www.codecogs.com/

These two sites accept code submissions in a variety of languages for many applications.

Also, there are the freeware sites (I mentioned already), and many scripts sites. Check out the list below. Many of these sites call themselves scripts sites, but they also accept a whole range of code submissions.

Advance Scripts http://www.advancescripts.com/
All the Scripts http://www.allthescripts.com/
Big Resource http://www.bigresource.com/
Big Webmaster http://www.bigwebmaster.com/
Code Junction http://www.codejunction.com/
Computer Scripts http://www.computerscripts.com/
Developer Tutorials http://www.developertutorials.com/
Devscripts http://www.devscripts.com/
Dream.In.Code http://code.dreamincode.net/
Fatscripts.com http://www.fatscripts.com/
Firescripts Scripts Directory http://www.firescripts.com/
HotScripts.com http://www.hotscripts.com/
iScripts http://www.iscripts.com/
Javascript Source http://javascript.internet.com/
Matrix28 http://www.matrix28.com/
NeedScripts http://www.needscripts.com/
The New World http://www.the-new-world.com/
Planet Source Code http://www.planet-source-code.com/
Programmers Heaven http://www.programmersheaven.com/
Scriptdex http://www.scriptdex.com/
Scripts.com http://www.scripts.com/
ScriptsBank http://www.scriptsbank.com/
Scripts-By.net http://www.scripts-by.net/

DavidB 44 Junior Poster

Are those two separate problems? Or are they the same problem?

You have created a single line joining the points and that seems to be working well.

Now you have several lines criss-crossing each other and you don't know which line to pick? Is this the same data set for which you have a working solution mentioned above? Does the data represent a known relation (in which case, perhaps you know it should have a quadratic, cubic, etc. relationship)?

Normally, if data contains errors, an experimenter might do a least-squares data fit. If the data does not contain errors, and a smooth line is desired going through all points, an experimenter might do a spline interpolation.

I am really not clear what you are trying to do.

DavidB 44 Junior Poster

Don't overlook including your blog URL on your resume. If you have your resume posted on some of the big job posting boards you should draw in some more visitors too. It might get you a job and, even if it doesn't, the fact that a potential employer did a search for somebody with your credentials and came across your posted resume is a good sign. I think that is well-targetted traffic. And the blog serves as a showcase of your talent--your web design skills, your writing ability, etc.--so that potential employers know you are not joking; you have results to display to back you up.

In any case, it should bring in a few extra visitors per week.

DavidB 44 Junior Poster

Hi, Quinn.

Welcome to DaniWeb.

Hope you enjoy your stay.

DavidB 44 Junior Poster

What do your applications do? Are they Windows apps? Tools? Calculators? Calendars? etc.? In what language are they written?

A search for freeware would probably turn up many sites for posting your applications. Other, language-specific, sites are also around.