Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

That's a good question. Some sites, such as codeproject.com states that all code can be freely used for either personal or commercial use, sort of like GNU license.. If you read the TOS link at the bottom of the page I don't see anything of that sort.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Granted -- but you are sentenced to life in prison without parole for counterfiting money.

I wish I could drive a new Rolls Royce.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Do you plan on selling your program, or are you writing it just for your own enjoyment? If you want to sell it then you may want to upgrade your operaring system to either Windows 7 or 8 so that you can program with most recent versions of the .NET framework. According to this you can not install version 4 on XP. (Microsoft will stop all support for XP on April 8, 2014 (link))

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Sometimes -- but only sugar-free jelly

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Jeff extra crunchy peanut butter sandwich (for breakfast)

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

You don't even need the if statement

private void EnabledCheckBox_CheckedChanged(object sender, EventArgs e)
        {
            var checkbox = (CheckBox)sender;
            SaveButton.Enabled = checkbox.Checked;
        }
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I use Windows 8 Pro. It requires a bit of learning curve after using Windows 7, mainly because there is no Start button. But everything is there in Windows 8, you just have to learn how to find it. I rarely use the Metro screen, prefer the standard Desktop view, which is almost the same as Windows 7. IMO the Metro screen on a PC is a stupid idea, even if your PC has a touch-screen. I don't want my PC to look like a tablet or cellphone -- I want it to look and act like a PC.

Windows 8 installation is simpler for endusers then Windows 7 and contains all or most current device drivers. I didn't have to install any additional drivers -- it detected all my hardware perfectly. Windows 8 boots a bit faster then Windows 7 because the os is not as big. I have not seen Windows 8.1 so I can't comment on it.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I don't see a PC version of that game -- and it's not fee anyway.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

is it going to be displayed on a browser? If not then just use VB.NET's built-in grid control. In any event. read the chapter about databases in that tutorial

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I love this free tutorial PDF. It contains a chapter on how to use SQL databaases. I have no clue why you are doing all that HTML stuff.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I like the old Dev-Cpp, and still using thatc

I guess you like using obsolete and buggy programs :) But you could just update the MinGW compiler with newest version.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Star Knight -- rather old (1985) but entertaining mix of sci-fi and chivarly of mideval europe.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

You mean, I can't believe everything I read on the Web?

Oh yes you can -- false or misleading information can't be posted on the web. That's the law of the web.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Does your program catch the WM_PAINT event? That is where you need to do all the drawing.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

What is UB sepp2k ??

UB = Undefined Behavior, which means the standards do not say what happens, and the compilers are free to do whatever they wish. Such behavior may be different from one compiler to the next, or sometimes the program may just crash.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

If a boolean return type function contains too many returns in it, does it cause any problem

No -- The acual value of true and false is not defined, nor is it guarenteed to be either 0 or 1. It's actual value depends on the compiler -- 128 may be the correct value for your compiler. In Microsoft Visual C++ 6 and newer versions sizeof(bool) is one byte. The max value of a signed char is 127, so the value of unsigned char of 128 could be -1 in signed char. Apparently your compiler treates true as -1 and false as 0.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

You will find the explanation of them all here

while(cin.get() != '\n')

The above is getting characters from the keyboard one at a time until '\n' (Enter key) is reached.

rubberman commented: Good link, C++.com - I keep a tab open to it in my browser all the time! :-) +12
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Your problem is on line 16 -- you are tring to output the wrong prompt variable. Just delete line 14 and change line 16 to output Prompt (capital 'P').

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

line 8 is nonsense -- no one in his/her right mind would do such a thing. Useless statement.

line 7 might be a problem without typecase.
p = (char*)arr;

line 9 will NOT print the value of arr[0] as you might expect. p is a char pointer, so *p will return only the first byte of an integer.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I recently received up votes for posts I made over 5 years ago! Really?? -- shouldn't there be a time limit for such things? I appreciate the up votes, but they are pretty-much meaningless after all this time.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Unless there are other calculations you don't need to include math.h -- the calculations in your program are all standard C statements.

switch the two statements on lines 31 and 35 -- test if bmi >= 50 before testing if bmi >= 25.

Your program will be a little more efficient if you use if-else statements

if( bmi <= 25)
{

}
else if(bmi >= 50)
{

}
else
{
  // bmi is betwen 25 and 5p0
}
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

why do you have three threads for the same problem?

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

What version of Windows is that? I have never heard of windows having more than one hardware profile. How can that happen?

[edit] Oh, I see from here only XP supports multiple profiles. I still don't know why there should be such a thing.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I don't know but I presume he became the republican candidate before he made those statements. Politicans of all parties often make stupid silly statements that they later regret.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

You begin your research reading the methods and properties from msdn (link) Look though the list of properties and method to find the one that returns the text from the selection field of the combobox. Then all you have to do is copy the text into a textbox (a simple assignment)

I could just tell you, but I won't because you need to learn how to find out those things for yourself. It's part of the learning process.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Doesn't it bother you that the officially sanctioned Republican candidate for governor has taken the position that you should be jailed for having oral sex, even if it is with your spouse?

No -- why? becuse I know he's just crazy as a bedbug and no one in his/her right mind will take him seriously. I don't let loonies bother me -- I just ignore them.

Ban on same sex marriages has been around for thousands of years. There are still many countries where it is illegal. No doubt that Indiana will eventully abandon that law. I was against it too until someone asked me how same sex marriage will affect my own marriage -- I couldn't think of any good reason other than "it's always been that way".

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

it's undefined because you have no idea what other functions will do with it. It also easily allows bugs into the program.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

yes -- printf() will attempt to use it.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
        Dim sqlquery As String = "INSERT INTO one(regno,rollno,nepali,com_english_w,com_english_o,com_math,social_w,social_o," & _
           "science_w,science_o,hpe_w,hpe_o,creative,health,extra_math,extra_eng_w,extra_eng_o) values('" & row1 & "','" & _
            row2 & "','" & row3 & "','" & row4 & "','" & row5 & "','" & row6 & "','" & row7 & "','" & row8 & "','" _
             & row9 & "','" & row10 & "','" & row11 & "','" & row12 & "','" & row13 & "','" & row14 & "','" & row15 & "','" & row16 & "','" & row17 & "')"

I split the line up so that I could see all of it at the same time. This compiles ok with VB.NET 2012

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

The code has undefined behavior because check() is returning a pointer to an object that doesn't exist after check() returns to it's caller. That is illegal in C and C++.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

If they are numbers then don't put them in quotes

values(row1 & "," & row2...)

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

my guess is that the data types in the database table are not the same as the types in your sqlstring. Are all the column data types in the table strings?

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

And that means you're to support it for the simple reason that you're not planning on having oral sex and therefore have nothing to lose in supporting the plan?

How the hell did you derive that from my statement??? You are trying to make an association where there is none.

It's illegal to drive in the fast lane unless overtaking. At the same time it's illegal to change lanes unnecessarilly, so it's illegal to switch back to the slow lane after overtaking unless someone comes up from behind who's faster than you

But it is necessary to change lanes after overtaking, so I doubt that would be breaking the law. Anyone ever get a ticket for that?

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

char name[] = "George Bush";

In the above case name is a variable that resides in writable memory and you can change it's contents later however you wish (assuming you stay within the bounds of the array).

char* name = "George Bush"

In this case name is just a pointer that refers to a string in read-only memory. The string can not be changed, but the pointer can be changed to refer to something else.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Apparently whoever wrote that article didn't know when it was launched

Key Difference: Windows XP was launched in April 2008

Then later in the article

Windows XP was released in October 2001.

It also appears to be copy/paste from this wiki articled

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

then it goes back to the beginning of the line with the "\r" erasing the output

Not no any computer I have used. \r simply moves the cursor back to the beginning of the line, everything on the line remains intact.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

autoexec.bat

echo "Formatting drive C:  Please wait ..."
pause
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

but is there any other possible easy way to solve this problem

What problem? You haven't posted the problem. If all you want to do is get an array of N random characters then the code you posted is way too complicated. All you need is a simple loop that calls rand().

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

You forgot to ask a question.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

hmmm ... what red flag? don't see any red flag there?

Humm -- you must not have read the posts in this thread.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

You mean you created over 3,000 youtube videos???

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

You can change your program to ignore empty lines, just add the check just before line 17. If the line is empty don't increment the counter. But that may cause other undesireable side affects. Your program runs correctly as it is, if it doesn't display the lines you think it should then you need to edit the text file and remove the blank lines.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Check your text file -- your program ran ok for me. I have a text file that lists US state names and their abbreviations. Ran your program with "5 states.txt" and it printed the last 5 lines of that file. If the text file contains blank lines at the beginning or end of the file your program may not produce the desired results unless you expect the blank lines.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

We have several useless laws that politicians refuse to remove. Spitting on public streets is one of them.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I think this is funny -- but probably all too common among political candidates

In May, Cuccinelli released fake polls showing himself five points behind McAuliffe, when the number was actually 12 - See more at: http://hiphopwired.com/2013/07/22/virginia-gubernatorial-candidate-ken-cuccinelli-continues-losing-fight-to-outlaw-oral-sex/#sthash.zwN4t0lc.dpuf

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Virginia Attorney General Ken Cuccinelli (the Republican party nominee for governor) launched a new campaign website Wednesday highlighting his efforts to reinstate Virginia’s Crimes Against Nature law.

What you failed to mention is that everyone is laughing at that campaign. I doubt anyone will have to be concerned about it becoming law of the land.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Read this tutorial to find out about MPI. I don't know anything about it either, so I can't answer any questions you may have.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Combined with tracking cars, the government can now have a pretty accurate picture (within walking distance from the nearest bus stop) where most everyone in the country is, in near real time.
And that doesn't worry you?

No -- only criminals have something to fear. I could care less if government tracks my whereabouts -- they would quickly find my life very boring.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I think the key is to read about the return value of fork() in the man pages\

Return Value
On success, the PID of the child process is returned in the parent, and 0 is returned in the child. On failure, -1 is returned in the parent, no child process is created, and errno is set appropriately.
Errors

I'm no *nix expert, or even novice, if I were to guess I'd say Sun will get printed 4 times and Solaris one time.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I assume the ground means the concrete sidewalk not your front yard

No, "ground" means "dirt" -- Mother Earth. This rain was so hard and lasted so long the city sewer system couldn't handle all the water. And in the country the farm fields were all flooded and the deep ditches where overflowing with water.